diff options
author | Bastien Guerry <bzg@altern.org> | 2011-07-24 18:40:30 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2011-07-24 18:40:30 +0200 |
commit | ecd2a41ecc2404f5606603b45aa52ed82849c34b (patch) | |
tree | b2494c7d3fe8e70085e2f8eae8f86edcc1bcfb39 | |
parent | 9a6a1b6a0495da951e59cac16b5e669c8a17dd56 (diff) | |
download | org-mode-ecd2a41ecc2404f5606603b45aa52ed82849c34b.tar.gz |
org-table: use HH:MM:SS as the standard display of durations.
(org-table-time-seconds-to-string): Uniformize the display of
durations, always return HH:MM:SS. Also display negative time
correctly.
-rw-r--r-- | lisp/org-table.el | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el index 7a24733..f483223 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -3230,9 +3230,7 @@ S must be a string matching either -?HH:MM:SS or -?HH:MM." (defun org-table-time-seconds-to-string (secs) "Convert a number of seconds to a time string." - (cond ((>= secs 3600) (org-format-seconds "%h:%.2m:%.2s" secs)) - ((>= secs 60) (org-format-seconds "%m:%.2s" secs)) - (t (org-format-seconds "%s" secs)))) + (org-format-seconds "%.2h:%.2m:%.2s" secs)) (defun org-table-fedit-convert-buffer (function) "Convert all references in this buffer, using FUNCTION." |