As of 2009-02-21, this still seems to be broken. I tried a date of *2018-07-17.11:15* in a ledger entry, and used *--input-date-format* *'%Y-%m-%d.%H:%M'* on the command line, but:
While parsing transaction: > 2018-07-17.11:15 Some transaction Error: Invalid date: 2018-07-17.11:15 Any chance of times being supported? On Sunday, March 18, 2018 at 6:22:01 AM UTC-7, Vishesh Handa wrote: > > Hi > > Most of my banks give me the date and time of each transaction. I think > ledger doesn't support this, based on the following experiment - > > 2017-10-09 13:44:32 * For something > Expense:Foo 500 EUR > Assets:Checking > > The transaction does not appear with the --cleared flag. Additionally the > formatting is bit off with the 'register' command. I also tried specifying > --input-date-format='%Y-%m-%d %H:%M:%S', but that did not help. Also none > of the documentation mentions time. > > * Are there any plans of supporting an optional time format? I understand > that this can get quite complex with timezones. > > * For now how do people generally store the time? I was planning on > storing it as a "Metadata value". > > I find it especially useful to store the time as it allows me to easily > calculate how much money I spent on lunch, and it should allow me to > approximately map my transaction data with my location data. It's also > useful for trading accounts with many transactions a day. > > -- > Vishesh Handa > > > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
