mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-28 12:54:07 +03:00
621a91807e
The command-line flag is now --date2. Alternate spellings --effective and --aux-date are accepted for compatibility.
28 lines
415 B
Plaintext
28 lines
415 B
Plaintext
# print shows both dates. The second's year defaults to the first's.
|
|
hledgerdev -f - print --date2
|
|
<<<
|
|
2009/1/1=1/2 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2009/01/01=2009/01/02 x
|
|
a 1
|
|
b -1
|
|
|
|
>>>2
|
|
>>>= 0
|
|
|
|
# Secondary date of 29 Feb on leap year should be valid
|
|
hledgerdev -f - print --date2
|
|
<<<
|
|
2001/2/27=2000/2/29 x
|
|
a 1
|
|
b
|
|
>>>
|
|
2001/02/27=2000/02/29 x
|
|
a 1
|
|
b -1
|
|
|
|
>>>2
|
|
>>>= 0
|