Register date range

46 views
Skip to first unread message

ARP

unread,
Sep 19, 2020, 6:44:26 PM9/19/20
to Ledger
Hi, how do I specify a date range for "current month" or "last month" or "since Sept 1"?  My command is:  ledger -f [ledger file] reg "[bank account]"

Thank you!

Martin Michlmayr

unread,
Sep 19, 2020, 10:49:35 PM9/19/20
to ledge...@googlegroups.com
* ARP <arp...@gmail.com> [2020-09-19 15:44]:
> Hi, how do I specify a date range for "current month" or "last month" or
> "since Sept 1"? My command is: ledger -f [ledger file] reg "[bank
> account]"

-p "this month"

-p "last month"

-p "since 2020-09-01"

--
Martin Michlmayr
https://www.cyrius.com/

Albert Pyott

unread,
Sep 20, 2020, 9:25:27 PM9/20/20
to ledge...@googlegroups.com
Fantastic. Thank you!

(I have only the Ledger manual from the website. Maybe I missed that command. If there are other good resources, I would be eager to read them 😄 )


> On Sep 19, 2020, at 10:49 PM, Martin Michlmayr <t...@cyrius.com> wrote:
>
> * ARP <arp...@gmail.com> [2020-09-19 15:44]:
> --
>
> ---
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/20200920024923.GA22830%40jirafa.cyrius.com.

Martin Michlmayr

unread,
Sep 23, 2020, 1:17:03 AM9/23/20
to ledge...@googlegroups.com
--period / -p is mentioned in the manual but I think the problem is
that it doesn't link to the section where the valid time expressions
are described:
https://www.ledger-cli.org/3.0/doc/ledger3.html#Period-Expressions

I'll try to improve that.

* Albert Pyott <arp...@gmail.com> [2020-09-20 21:25]:
> To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/12DFAED5-6902-47CA-8349-0AB36C7A6275%40gmail.com.
Reply all
Reply to author
Forward
0 new messages