mirror of
https://github.com/simonmichael/hledger.git
synced 2025-01-04 00:07:29 +03:00
38 lines
520 B
Plaintext
38 lines
520 B
Plaintext
# 1. print shows both primary and secondary dates. The second's year defaults to the first's.
|
|
hledger -f - print
|
|
<<<
|
|
2000/1/1=3/3
|
|
(a) 1
|
|
|
|
2000/1/2=2/2
|
|
(b) 1
|
|
|
|
>>>
|
|
2000-01-01=2000-03-03
|
|
(a) 1
|
|
|
|
2000-01-02=2000-02-02
|
|
(b) 1
|
|
|
|
>>>2
|
|
>>>= 0
|
|
|
|
# 2. With --date2, the secondary date is used for sorting.
|
|
hledger -f - print --date2
|
|
<<<
|
|
2000/1/1=3/3
|
|
(a) 1
|
|
|
|
2000/1/2=2/2
|
|
(b) 1
|
|
|
|
>>>
|
|
2000-01-02=2000-02-02
|
|
(b) 1
|
|
|
|
2000-01-01=2000-03-03
|
|
(a) 1
|
|
|
|
>>>2
|
|
>>>= 0
|