I'm attempting to output timekeeping data with the intention of graphing it.

$ ledger -f "$(t timelog)" reg -p 'this week' --daily
18-Jan-22 - 18-Jan-22   (N:Development)                   8.19h    8.19h
                        (N:Email)                         15.0m    8.44h
                        (N:Meeting:Development)           30.0m    8.94h
                        (N:Meeting:Development:Standup)   30.8m    9.45h
                        (N:TimeTracking)                   2.1m    9.49h
18-Jan-23 - 18-Jan-23   (N:Development)                   4.46h   13.94h
                        (N:Development:CodeReview)        1.44h   15.38h
                        (N:Meeting:Development:Pairing)   20.8m   15.73h
                        (N:Meeting:Development:Product)   29.0m   16.21h
                        (N:Meeting:Development:Standup)   24.1m   16.62h
                        (N:Meeting:Recruiting:Interview)  1.28h   17.90h
                        (N:TimeTracking)                   7.0m   18.02h
18-Jan-24 - 18-Jan-24   (N:Development)                   47.0m   18.80h
                        (N:Email)                          8.1m   18.93h
                        (N:Meeting:Development:Standup)   30.0m   19.43h
                        (N:Recruiting)                    2.25h   21.68h
                        (N:TimeTracking)                   1.0m   21.70h

is turning into

$ ledger -f "$(t timelog)" reg -p 'this week' --daily --amount-data
2018-01-22 8.188611
2018-01-22 15
2018-01-22 30
2018-01-22 30.783333
2018-01-22 2.05
2018-01-23 4.458889
2018-01-23 1.439722
2018-01-23 20.816667
2018-01-23 29
2018-01-23 24.05
2018-01-23 1.283333
2018-01-23 7
2018-01-24 47
2018-01-24 7.9
2018-01-24 30
2018-01-24 2.25
2018-01-24 1

It's pretty clear from looking at this that the *units* are not the same.
Some events are outputting as minutes while others are in hours. I've tried
adding --exchange s after running commodities on the file and seeing that.
Adding the exchange option changes the specificity of some of the values
but it does not change the output units.

It seems from the section on Commodity equivalences
<https://www.ledger-cli.org/3.0/doc/ledger3.html#Commodity-equivalences>
that I should be able to do this somehow. Any ideas?

--
Colin Dean
http://cad.cx

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to