Hi Bastien,

Bastien wrote:
> "Sebastien Vauban" <wxhgmqzgw...@spammotel.com> 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 <s...@mygooglest.com>
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