emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Incorrect clock duration calculation
@ 2019-05-07  9:07 Martin Schroeder
  2019-05-07 14:02 ` Julius Dittmar
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Martin Schroeder @ 2019-05-07  9:07 UTC (permalink / raw)
  To: emacs-orgmode

I noticed that on timestamps that begin or end at 00:00 the org mode
org-evaluate-time-range function seems to produce wrong results. Here
are some examples:

For example, this should produce 2:00 duration:
CLOCK: [2019-04-19 Fri 22:00]--[2019-04-19 Fri 00:00] => -22:00
I tried this, but id did not work either:
CLOCK: [2019-04-19 Fri 22:00]--[2019-04-19 Sat 00:00] => -22:00
This works though but this does not cross day boundary:
CLOCK: [2019-04-19 Fri 22:00]--[2019-04-19 Fri 23:00] =>  1:00
This should produce 3:00 but it gives -21 even though the end time is
later than start time:
CLOCK: [2019-04-19 Fri 22:00]--[2019-04-19 Sat 01:00] => -21:00

Does anyone have a solution for this?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-07 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07  9:07 Incorrect clock duration calculation Martin Schroeder
2019-05-07 14:02 ` Julius Dittmar
2019-05-07 14:07 ` Jude DaShiell
2019-05-07 19:30 ` Thomas Plass

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).