Re: a surprising result (bug?) with --end quiry option
> Martin Michlmayrwrites: > (There are 3 definitions for --end!) The source code shows that --end is *exclusive*, such that: -b 2014 -e 2015 Means: All transactions in 2014, none from 2015. One can always use value expressions with --limit to craft whatever time equation they wish. The options above equate to: -l 'date >= [2014] && date < [2015]' -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2 -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: a surprising result (bug?) with --end quiry option
* charles[2015-12-07 17:04]: > ledger -f test.ldg print --begin 2015-12-07 --end 2015-12-08 This is correct. > That description makes me think --end 2015-12-07 would find a transaction > dated 2015-12-07. > Or am I misunderstanding?? The man page is misldeading. The manual is clearer on this: Limit the processing to transactions before @var{DATE}. Specify the end @var{DATE} for a transaction to be considered in the report. All transactions on or after this date are ignored. Constrain the report so that transactions on or after @var{DATE} are not considered. (There are 3 definitions for --end!) I'll update the man page. -- Martin Michlmayr http://www.cyrius.com/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
a surprising result (bug?) with --end quiry option
Hello all, I performed this little test with ledger and was surprised by the result. Is it a bug, or intended? I created a test file containing the following transaction: 2015-12-07 (exp) holiday chocolate for clients ; holiday gift for promotion Expenses:PromotionUSD 75.73 Assets:Checking I was surprised when following ledger command produced no output: ledger -f test.ldg print --begin 2015-12-01 --end 2015-12-07 [zilch] Yes this command with the end date bumped out one day does find the transaction: ledger -f test.ldg print --begin 2015-12-07 --end 2015-12-08 2015-12-07 (exp) holiday chocolate for clients ; holiday gift for promotion Expenses:Promotion USD 75.73 ; debit account Assets:Checking ; credit account Man ledger contains this description of --end: --end DATE (-e) Specify the end DATE for a transaction to be considered in the report. That description makes me think --end 2015-12-07 would find a transaction dated 2015-12-07. Or am I misunderstanding?? -- Charles -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to ledger-cli+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.