Re: date syntax

2011-08-30 Thread John Wiegley
> thierry writes: > Hi, I would like to report monthly data, starting the 1st day of the month, > 12 month ago. I can use the "period" command to see how Ledger parses a given date: $ ./ledger period "12 months ago" --- Period expression tokens --- TOK_INT: 12 TOK_MONTHS: m

date syntax

2011-08-30 Thread thierry
Hi, I would like to report monthly data, starting the 1st day of the month, 12 month ago. The closest I have found, but still incorrect is : ledger --display="d>=[this month]-365" --now=2012/03/15 -M reg Account gives me a date starting 2011-Mar-02 (not the 1st of the month, because of 2012-Feb