emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] decimal hours for clocking


From: Nick Dokos
Subject: Re: [Orgmode] decimal hours for clocking
Date: Wed, 06 May 2009 01:11:16 -0400

Samuel Wales <address@hidden> wrote:

> This is a tiny little thing, but currently org-clock-display shows
> hours and minutes.  Perhaps it could also show decimal hours.  Thus
> 9:30 could report as "9:30 (9.5h)".  I'd find it easier not to have to
> calculate it manually.
> 

Assuming that you talking about the total time that is written out in
the echo area by org-clock-display, you can change its last line from
this:

    ...
    (message (concat "Total file time: " org-time-clocksum-format "(%d hours 
and %d minutes)") h m h m)))

to this:

    ...
    (message (concat "Total file time: " org-time-clocksum-format "(%d hours 
and %d minutes (%d.%02d))") h m h m h (* 100 (/ m 60.0)))))

HTH,
Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]