hledger-0.2: A ledger-compatible text-based accounting tool.



A TimeLog is a parsed timelog file (see timeclock.el or the command-line version) containing zero or more TimeLogEntrys. It can be converted to a RawLedger for querying.



ledgerFromTimeLog :: TimeLog -> RawLedgerSource

Convert a time log to a ledger.

entriesFromTimeLogEntries :: [TimeLogEntry] -> [Entry]Source

Convert time log entries to ledger entries.

clockoutFor :: TimeLogEntry -> TimeLogEntrySource

When there is a trailing clockin entry, provide the missing clockout. An entry for now is what we want but this requires IO so for now use the clockin time, ie don't count the current clocked-in period.

entryFromTimeLogInOut :: TimeLogEntry -> TimeLogEntry -> EntrySource

Convert a timelog clockin and clockout entry to an equivalent ledger entry, representing the time expenditure. Note this entry is not balanced, since we omit the "assets:time" transaction for simpler output.