38 lines
		
	
	
		
			512 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			512 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
 |