Re: How do period expressions work with --begin and --end?

2023-02-03 Thread John Wiegley
> "MB" == Marcin Borkowski  writes:

MB> Is that correct?  Also, is it documented somewhere?

Try the "ledger period EXPR" command, which will tell you how Ledger
interprets any given date expression. Not sure if this debugging subcommand is
documented...

John

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/m27cwymvzx.fsf%40newartisans.com.


How do period expressions work with --begin and --end?

2023-01-31 Thread Marcin Borkowski
Hi all,

I was wondering how things like "this month" work with --begin and
--end.  I did some experiments, and it looks like you can give "this
month" or "last month" as an argument to --begin and --end, and their
meaning is "the first day of that period".  So:

--begin "last month" --end "this month"

is apparently equivalent to

--period "last month"

Is that correct?  Also, is it documented somewhere?

Best,

-- 
Marcin Borkowski
http://mbork.pl

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/87fsbpkfhv.fsf%40mbork.pl.