2011-09-23 18:50:20 +04:00
|
|
|
# print shows both dates. The second's year defaults to the first's.
|
2012-12-06 08:43:41 +04:00
|
|
|
hledgerdev -f - print --date2
|
2009-11-26 00:21:49 +03:00
|
|
|
<<<
|
2009-12-12 06:03:41 +03:00
|
|
|
2009/1/1=1/2 x
|
2009-11-26 00:21:49 +03:00
|
|
|
a 1
|
|
|
|
b
|
|
|
|
>>>
|
2011-09-23 18:50:20 +04:00
|
|
|
2009/01/01=2009/01/02 x
|
2009-11-26 00:21:49 +03:00
|
|
|
a 1
|
|
|
|
b -1
|
|
|
|
|
2010-02-04 00:19:01 +03:00
|
|
|
>>>2
|
2011-04-20 01:40:59 +04:00
|
|
|
>>>= 0
|
2011-09-23 18:50:20 +04:00
|
|
|
|
2012-12-06 08:43:41 +04:00
|
|
|
# Secondary date of 29 Feb on leap year should be valid
|
|
|
|
hledgerdev -f - print --date2
|
2011-04-20 00:10:30 +04:00
|
|
|
<<<
|
2011-04-20 01:40:59 +04:00
|
|
|
2001/2/27=2000/2/29 x
|
2011-04-20 00:10:30 +04:00
|
|
|
a 1
|
|
|
|
b
|
|
|
|
>>>
|
2011-09-23 18:50:20 +04:00
|
|
|
2001/02/27=2000/02/29 x
|
2011-04-20 00:10:30 +04:00
|
|
|
a 1
|
|
|
|
b -1
|
|
|
|
|
|
|
|
>>>2
|
2011-04-20 01:40:59 +04:00
|
|
|
>>>= 0
|