emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Samuel Wales <samologist@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: decimal hours for clocking
Date: Wed, 27 May 2009 15:43:42 -0700	[thread overview]
Message-ID: <20524da70905271543i1bd9d71ch78a42718fc8b0d7b@mail.gmail.com> (raw)
In-Reply-To: <27927.1241586676@gamaville.dokosmarshall.org>

Thanks.  I thought it might be a generally useful thing, not just for
me.  Then again, I should perhaps again try to figure out the
clocktable stuff or properties to actually calculate hours*rate.

On Tue, May 5, 2009 at 22:11, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Samuel Wales <samologist@gmail.com> 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
>



-- 
Myalgic encephalomyelitis denialism is causing death and severe suffering
worse than MS.  Conflicts of interest are destroying science.  Anybody can
get the disease at any time permanently.  Do science and justice matter to
you?  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm

  reply	other threads:[~2009-05-27 22:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-06  2:41 decimal hours for clocking Samuel Wales
2009-05-06  5:11 ` Nick Dokos
2009-05-27 22:43   ` Samuel Wales [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-20 21:16 Samuel Wales
2018-08-21 18:15 ` Nicolas Goaziou
2018-08-21 21:55   ` Samuel Wales

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20524da70905271543i1bd9d71ch78a42718fc8b0d7b@mail.gmail.com \
    --to=samologist@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).