mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-12 19:08:34 +03:00
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
#
|
|
# monthly reporting interval, no end dates, shows just the intervals with data:
|
|
bin/hledger -f- register --period 'monthly'
|
|
<<<
|
|
2010/2/1 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2010/02/01 - 2010/02/28 a 1 1
|
|
b -1 0
|
|
#
|
|
# with --empty, the same:
|
|
bin/hledger -f- register --period 'monthly' --empty
|
|
<<<
|
|
2010/2/1 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2010/02/01 - 2010/02/28 a 1 1
|
|
b -1 0
|
|
#
|
|
# with --empty and start/end dates, show all intervals covering the specified period
|
|
bin/hledger -f- register --period 'monthly from 2010/1/10 to 2010/3/15' --empty
|
|
<<<
|
|
2010/2/1 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2010/01/01 - 2010/01/31 0 0
|
|
2010/02/01 - 2010/02/28 a 1 1
|
|
b -1 0
|
|
2010/03/01 - 2010/03/31 0 0
|
|
#
|
|
# with just one start/end date, get the other from the data
|
|
bin/hledger -f- register --period 'monthly from 2010/1/10' --empty
|
|
<<<
|
|
2010/2/1 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2010/01/01 - 2010/01/31 0 0
|
|
2010/02/01 - 2010/02/28 a 1 1
|
|
b -1 0
|