hledger-lib-1.12: Core data types, parsers and functionality for the hledger accounting tools

Safe Haskell | None
Language | Haskell2010

Hledger.Data.Timeclock

Contents

- Orphan instances

Description

A `TimeclockEntry` is a clock-in, clock-out, or other directive in a timeclock file (see timeclock.el or the command-line version). These can be converted to `Transactions` and queried like a ledger.

Synopsis

- timeclockEntriesToTransactions :: LocalTime -> [TimeclockEntry] -> [Transaction]
- tests_Timeclock :: Test ()

# Documentation

timeclockEntriesToTransactions :: LocalTime -> [TimeclockEntry] -> [Transaction] Source #

Convert time log entries to journal transactions. When there is no clockout, add one with the provided current time. Sessions crossing midnight are split into days to give accurate per-day totals.

tests_Timeclock :: Test () Source #

# Orphan instances

Read TimeclockCode Source # |
Instance details Methods readsPrec :: Int -> ReadS TimeclockCode Source # readList :: ReadS [TimeclockCode] Source # readPrec :: ReadPrec TimeclockCode Source # readListPrec :: ReadPrec [TimeclockCode] Source #
Show TimeclockEntry Source # |
Instance details Methods showsPrec :: Int -> TimeclockEntry -> ShowS Source # show :: TimeclockEntry -> String Source # showList :: [TimeclockEntry] -> ShowS Source #
Show TimeclockCode Source # |
Instance details Methods showsPrec :: Int -> TimeclockCode -> ShowS Source # show :: TimeclockCode -> String Source # showList :: [TimeclockCode] -> ShowS Source #