Re: [O] How to calculate all time durations in a file automatically?
Yeah I ended up using a macro and search for CLOCK text but this solution is much cleaner On Tue, May 7, 2019 at 6:04 PM Ihor Radchenko wrote: > > Dear Martin, > > Just go to the beginning of buffer and (while (re-search-forward > org-clock-line-re) (org-ctrl-c-ctrl-c)) . Or you can use keyboard > macros ;) > > Best, > Ihor > > Martin Schroeder writes: > > > I have imported a bunch of log lines with CLOCK periods from another > > program into an org file but I have forgotten to calculate periods. So > > my time lines look like this: > > > > CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30] > > > > Instead of this: > > > > CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30] => 2:00 > > > > I can now no longer check in on any task until I fix all these ranges > > in all of my agenda files. So I have to go to each one and do C-c C-c. > > > > Surely there has to be a better way but in my searching with a giant > > flashlight I was not able to find it yet. Can anybody point me in the > > right direction? > >
[O] Incorrect clock duration calculation
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?
[O] How to calculate all time durations in a file automatically?
I have imported a bunch of log lines with CLOCK periods from another program into an org file but I have forgotten to calculate periods. So my time lines look like this: CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30] Instead of this: CLOCK: [2019-03-27 Wed 19:30]--[2019-03-27 Wed 21:30] => 2:00 I can now no longer check in on any task until I fix all these ranges in all of my agenda files. So I have to go to each one and do C-c C-c. Surely there has to be a better way but in my searching with a giant flashlight I was not able to find it yet. Can anybody point me in the right direction?