From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: decimal hours for clocking Date: Wed, 27 May 2009 15:43:42 -0700 Message-ID: <20524da70905271543i1bd9d71ch78a42718fc8b0d7b@mail.gmail.com> References: <20524da70905051941j3957953j788ac757f5e4ccf1@mail.gmail.com> <27927.1241586676@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9RrC-0000D8-Id for emacs-orgmode@gnu.org; Wed, 27 May 2009 18:44:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9Rr7-0000Bu-2w for emacs-orgmode@gnu.org; Wed, 27 May 2009 18:44:22 -0400 Received: from [199.232.76.173] (port=48381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9Rr6-0000Br-Rv for emacs-orgmode@gnu.org; Wed, 27 May 2009 18:44:16 -0400 Received: from mail-gx0-f211.google.com ([209.85.217.211]:39834) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M9Rr5-0000uH-Qv for emacs-orgmode@gnu.org; Wed, 27 May 2009 18:44:16 -0400 Received: by gxk7 with SMTP id 7so2488274gxk.18 for ; Wed, 27 May 2009 15:44:13 -0700 (PDT) In-Reply-To: <27927.1241586676@gamaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.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 wrote: > Samuel Wales wrote: > >> This is a tiny little thing, but currently org-clock-display shows >> hours and minutes. =A0Perhaps it could also show decimal hours. =A0Thus >> 9:30 could report as "9:30 (9.5h)". =A0I'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: > > =A0 =A0... > =A0 =A0(message (concat "Total file time: " org-time-clocksum-format "(%d= hours and %d minutes)") h m h m))) > > to this: > > =A0 =A0... > =A0 =A0(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 > --=20 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