* How to calculate all time durations in a file automatically?
@ 2019-05-07 9:12 Martin Schroeder
2019-05-07 16:03 ` Ihor Radchenko
0 siblings, 1 reply; 3+ messages in thread
From: Martin Schroeder @ 2019-05-07 9:12 UTC (permalink / raw)
To: emacs-orgmode
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?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to calculate all time durations in a file automatically?
2019-05-07 9:12 How to calculate all time durations in a file automatically? Martin Schroeder
@ 2019-05-07 16:03 ` Ihor Radchenko
2019-05-07 18:08 ` Martin Schroeder
0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2019-05-07 16:03 UTC (permalink / raw)
To: Martin Schroeder, emacs-orgmode
Dear Martin,
Just go to the beginning of buffer and <M-:> (while (re-search-forward
org-clock-line-re) (org-ctrl-c-ctrl-c)) <RET>. Or you can use keyboard
macros ;)
Best,
Ihor
Martin Schroeder <mkschreder.uk@googlemail.com> 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?
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to calculate all time durations in a file automatically?
2019-05-07 16:03 ` Ihor Radchenko
@ 2019-05-07 18:08 ` Martin Schroeder
0 siblings, 0 replies; 3+ messages in thread
From: Martin Schroeder @ 2019-05-07 18:08 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: emacs-orgmode
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 <yantar92@gmail.com> wrote:
>
> Dear Martin,
>
> Just go to the beginning of buffer and <M-:> (while (re-search-forward
> org-clock-line-re) (org-ctrl-c-ctrl-c)) <RET>. Or you can use keyboard
> macros ;)
>
> Best,
> Ihor
>
> Martin Schroeder <mkschreder.uk@googlemail.com> 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?
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-07 18:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-07 9:12 How to calculate all time durations in a file automatically? Martin Schroeder
2019-05-07 16:03 ` Ihor Radchenko
2019-05-07 18:08 ` Martin Schroeder
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).