From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: decimal hours for clocking Date: Wed, 06 May 2009 01:11:16 -0400 Message-ID: <27927.1241586676@gamaville.dokosmarshall.org> References: <20524da70905051941j3957953j788ac757f5e4ccf1@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1ZQY-0005C1-Lc for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:12:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1ZQV-0005AH-Rr for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:12:17 -0400 Received: from [199.232.76.173] (port=58500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1ZQV-00059r-6m for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:12:15 -0400 Received: from qmta05.westchester.pa.mail.comcast.net ([76.96.62.48]:60630) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1ZQU-0002qb-Nz for emacs-orgmode@gnu.org; Wed, 06 May 2009 01:12:14 -0400 In-Reply-To: Message from Samuel Wales of "Tue, 05 May 2009 19:41:25 PDT." <20524da70905051941j3957953j788ac757f5e4ccf1@mail.gmail.com> 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: Samuel Wales Cc: emacs-orgmode@gnu.org Samuel Wales 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