data formats for ledger convert

46 views
Skip to first unread message

Joel

unread,
Jul 14, 2020, 5:27:59 PM7/14/20
to Ledger
Hello,

The ledger manual gives a bit of guidance for csv conversion of data formats.

Can ledger convert handle dates such as this:  Aug. 05, 2016, 08:50 AM

Thanks,

Joel

John Wiegley

unread,
Jul 15, 2020, 2:09:53 AM7/15/20
to Joel, Ledger
>>>>> "J" == Joel <jke...@gmail.com> writes:

J> The ledger manual gives a bit of guidance for csv conversion of data
J> formats.

J> Can ledger convert handle dates such as this:  Aug. 05, 2016, 08:50 AM

I think if you set --input-date-format correctly, you should be able to
achieve this.

John

o1bigtenor

unread,
Jul 15, 2020, 7:15:45 AM7/15/20
to Ledger, Joel
You may wish to consider using the ISO date/time format  - - - - - your 
example would look like   20160805T0850   .

I have adopted such as, for me at least, I no longer need to worry about 
whether its month first or day first (its biggest values to smallest ones) 
and the time is also a 24 hour clock and seconds and parts thereof can 
also be added . For a higher volume sales center this would enable very 
precise logging of sales where the time of sale could possibly even be 
used as an identifier for said sale. 

Regards

John Wiegley

unread,
Jul 20, 2020, 8:18:35 PM7/20/20
to o1bigtenor, Ledger, Joel
>>>>> "o" == o1bigtenor <o1big...@gmail.com> writes:

o> You may wish to consider using the ISO date/time format  - - - - - your 
o> example would look like   20160805T0850   .

Ledger currently does not track the time of a transaction, although you're
free to record that information bin metadata.

John
Reply all
Reply to author
Forward
0 new messages