From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: [bug] Remote durations are considered as fractions Date: Fri, 20 Apr 2012 22:45:51 +0200 Message-ID: <8062cunncw.fsf@somewhere.org> References: <80mx6t2dt7.fsf@somewhere.org> <87y5q3b3xf.fsf@gnu.org> <80hawfj1tu.fsf@somewhere.org> <87ty0ezm0w.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Bastien, Bastien wrote: > "Sebastien Vauban" writes: > >> BTW, *could we limit the format of "T" to H:MM*, instead of H:MM:SS? The first >> case seems much more common, and the one used in all time clocking functions >> of Org. > > Patch welcome! I think this is it... >From a77fe281afe5b568ebfd1d3969a7d4e6e8e54e63 Mon Sep 17 00:00:00 2001 From: Sebastien Vauban Date: Fri, 20 Apr 2012 22:43:11 +0200 Subject: [PATCH] Change output format of T specifier to H:MM * org-table.el (org-table-time-seconds-to-string): Change the format string for default output format to H:MM (instead of HH:MM:SS). --- lisp/org-table.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/org-table.el b/lisp/org-table.el index 2d527d7..76fa7c7 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3319,7 +3319,7 @@ minutes or seconds." (format "%.1f" (/ (float secs) 60))) ((eq output-format 'seconds) (format "%d" secs)) - (t (org-format-seconds "%.2h:%.2m:%.2s" secs)))) + (t (org-format-seconds "%h:%.2m" secs)))) (defun org-table-fedit-convert-buffer (function) "Convert all references in this buffer, using FUNCTION." -- 1.7.9 Best regards, Seb -- Sebastien Vauban