hledger-lib-1.40: A library providing the core functionality of hledger
Safe HaskellNone
LanguageHaskell2010

Hledger.Data.Timeclock

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

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.

Orphan instances

Read TimeclockCode Source # 
Instance details

Methods

readsPrec :: Int -> ReadS TimeclockCode

readList :: ReadS [TimeclockCode]

readPrec :: ReadPrec TimeclockCode

readListPrec :: ReadPrec [TimeclockCode]

Show TimeclockCode Source # 
Instance details

Methods

showsPrec :: Int -> TimeclockCode -> ShowS

show :: TimeclockCode -> String

showList :: [TimeclockCode] -> ShowS

Show TimeclockEntry Source # 
Instance details

Methods

showsPrec :: Int -> TimeclockEntry -> ShowS

show :: TimeclockEntry -> String

showList :: [TimeclockEntry] -> ShowS