There is a precedent in the Emacs manual -- Appendix E, Antinews: "For those users who live backwards in time [...]"
:-) I admit there may not be great practical utility in a negative time range. But the interval is well-defined so it ought to be computed correctly. I would say that a wrong answer is worse than no answer since it may be believed correct at first glance, when it is not. Anyway, I'm including a patch for 6.09 which seems to fix the problem.... On Thu, Oct 16, 2008 at 12:39 PM, Carsten Dominik <[EMAIL PROTECTED]> wrote: > Hi Chris, > > what could possibly be the purpose of a negative time range? Are you > working for a secret government agency? > > :-) > > - Carsten
--- /home/cleyon/u/share/emacs/site-lisp/org-6.09/lisp/org.el 2008-10-09 10:25:12.000000000 -0400 +++ org.el 2008-10-16 21:57:45.000000000 -0400 @@ -2511,11 +2511,12 @@ (apply 'encode-time (org-parse-time-string te))) (time-to-seconds (apply 'encode-time (org-parse-time-string ts)))) - h (floor (/ s 3600)) + sign (if (< s 0) "-" "") + h (truncate (/ s 3600)) s (- s (* 3600 h)) - m (floor (/ s 60)) + m (truncate (/ s 60)) s (- s (* 60 s))) - (insert " => " (format "%2d:%02d" h m)) + (insert " => " (format "%s%d:%02d" sign (abs h) (abs m))) t)))))) (defun org-check-running-clock ()
_______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode