emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [bug] Remote durations are considered as fractions


From: Sebastien Vauban
Subject: Re: [O] [bug] Remote durations are considered as fractions
Date: Fri, 20 Apr 2012 22:45:51 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (windows-nt)

Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" <address@hidden> 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 <address@hidden>
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




reply via email to

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