Commit Graph

40 Commits

Author SHA1 Message Date
Simon Michael
ae5a9439d0 count time elapsed in open timelog entries, ignore time zone
Any open sessions in a timelog will be considered clocked out as of the
current time, and included in calculations. Also, contrary to the earlier
patch we now ignore timezone everywhere and deal only with local times.
This might need revisiting eg to track time while crossing timezones.
2009-01-25 07:06:59 +00:00
Simon Michael
44cbed59cb use longer but standard and clearer getCurrentTime/Day 2009-01-24 19:48:37 +00:00
Simon Michael
b0178b88cc make prepareLedger use current time, not just date 2009-01-24 18:48:28 +00:00
Simon Michael
a51596899f a cached ledger now includes the full ledger text, also.
This reads the file twice, since I couldn't figure out how to do it just
once with the new error monad.. fixes welcome.
2008-12-10 07:29:08 +00:00
nick
ee4a2a1c1e New ledger parser with file inclusion 2008-12-08 01:49:31 +00:00
Simon Michael
1c969b5744 clean up ledger loading utilities 2008-12-05 08:51:14 +00:00
Simon Michael
ae9636e55c refactor ledger preparation 2008-11-29 20:00:21 +00:00
Simon Michael
d25995c1c8 refactor with DateSpan 2008-11-27 04:31:01 +00:00
Simon Michael
dc007e69a5 --options-anywhere to use ^ for negative patterns and permit options anywhere in command-line 2008-11-25 19:29:33 +00:00
Simon Michael
1312992000 more ledger parsing utilities, haddock 2008-11-22 20:22:59 +00:00
Simon Michael
c46189a75b filter by account patterns when caching a ledger, fix balance report totals 2008-11-22 05:51:48 +00:00
tim
514f015849 Implemented types for dates and datetimes
This patch replaces the strings used in the Entry, TimeLogEntry, and Transaction
records with real types. Rather than use the inbuild system date and time types
directly, two custom types have been implemented that wrap UTCTime: Date and
DateTime. A minimal API for these has been added.
2008-11-11 12:34:05 +00:00
Simon Michael
47cf7c3eb6 gather match functions in one place 2008-11-22 05:48:56 +00:00
Simon Michael
83d36dae63 more tests cleanup, and start to move match functions to Utils 2008-11-22 04:44:12 +00:00
Simon Michael
17ab6cb0ab support --real/-R flag 2008-10-16 09:50:16 +00:00
Simon Michael
57603db7b9 support -C/--cleared flag to filter by entry status (not transaction status) 2008-10-16 09:04:44 +00:00
Simon Michael
5fcab59414 support negative patterns and ledger's special balance report account matching rule 2008-10-15 17:04:47 +00:00
Simon Michael
80ef214f79 nicer ghci/repl usage, update docs 2008-10-12 09:17:21 +00:00
Simon Michael
01cd388c24 remove dead code, simplify cacheLedger again 2008-10-12 07:46:54 +00:00
Simon Michael
2cef939da1 rename accounts/filteraccounts fields to accountmap/filteraccountmap 2008-10-10 22:28:10 +00:00
Simon Michael
220417ce48 top-level Utils module 2008-10-10 10:04:26 +00:00
Simon Michael
627f78a730 first step towards a library, move Utils to Ledger.Utils 2008-10-03 00:05:16 +00:00
Simon Michael
8dcc90ff58 fix compile warnings 2008-06-28 04:44:49 +00:00
Simon Michael
d52b365fa0 combine patterns into single regexps, fix a bug with print & patterns 2007-07-11 06:58:47 +00:00
Simon Michael
ce0d4ec85a clean up account/description pattern handling 2007-07-11 05:46:20 +00:00
Simon Michael
ec1b5b9bce balance: combine boring account names properly when matching account patterns 2007-07-07 18:26:28 +00:00
Simon Michael
d739ac0718 begin arbitrary currency support 2007-07-04 02:24:33 +00:00
Simon Michael
b2b9aba791 sort register by date 2007-07-03 19:06:47 +00:00
Simon Michael
a266a9b2e0 show numbers with thousands separator 2007-07-03 19:01:13 +00:00
Simon Michael
e7d36bb40e cleanup 2007-07-02 23:54:17 +00:00
Simon Michael
91735f4f3c begin optimization 2007-07-02 23:41:07 +00:00
Simon Michael
2ddeb4841c move types to bottom 2007-07-02 16:43:14 +00:00
Simon Michael
6bc4f5f72d misc support 2007-05-02 07:37:08 +00:00
Simon Michael
2b696b8f0d define/run tests anywhere 2007-03-12 09:38:02 +00:00
Simon Michael
510d39095c big overhaul of options, support -f-, rudimentary timelog file handling 2007-03-12 07:40:33 +00:00
Simon Michael
7d2a868640 fix, show only top level by default 2007-03-10 23:05:30 +00:00
Simon Michael
1e1c819f4e more tree support, properly filter balance report by (one) account regexp 2007-03-10 21:24:57 +00:00
Simon Michael
8236f3f988 switch to Data.Tree 2007-03-10 03:16:19 +00:00
Simon Michael
1322bcb4a0 refactor, fix balance report 2007-02-16 11:51:30 +00:00
Simon Michael
ba40fbf733 reorg, split types into separate modules 2007-02-16 09:00:17 +00:00