emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Adding and subtracting from clocked entries.
@ 2013-11-04 14:02 Cecil Westerhof
  2013-11-04 14:47 ` Pete Ley
  2013-11-04 22:09 ` Bastien
  0 siblings, 2 replies; 7+ messages in thread
From: Cecil Westerhof @ 2013-11-04 14:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

I am trying out clock in org-mode. Is it possible to add en subtract times?

For example I am working on project A from 09:00 until 13:00. But during
this period I also worked for fifteen minutes on project B. I would like to
subtract those fifteen minutes from project A and add them to project B.
Can this be done?

-- 
Cecil Westerhof

[-- Attachment #2: Type: text/html, Size: 379 bytes --]

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

* Re: Adding and subtracting from clocked entries.
  2013-11-04 14:02 Adding and subtracting from clocked entries Cecil Westerhof
@ 2013-11-04 14:47 ` Pete Ley
  2013-11-04 15:02   ` Cecil Westerhof
  2013-11-04 22:09 ` Bastien
  1 sibling, 1 reply; 7+ messages in thread
From: Pete Ley @ 2013-11-04 14:47 UTC (permalink / raw)
  To: emacs-orgmode

Cecil Westerhof <cldwesterhof@gmail.com> writes:

As far as I know, you can do exactly this (the subtracting clock time
from one tree and adding it to another) but it's triggered on idle time,
so if you're working on something else in emacs it won't ask you to
resolve your idle clock time. 

> I am trying out clock in org-mode. Is it possible to add en subtract times?
>
> For example I am working on project A from 09:00 until 13:00. But during this
> period I also worked for fifteen minutes on project B. I would like to subtract
> those fifteen minutes from project A and add them to project B. Can this be
> done?
>
> --
> Cecil Westerhof

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

* Re: Adding and subtracting from clocked entries.
  2013-11-04 14:47 ` Pete Ley
@ 2013-11-04 15:02   ` Cecil Westerhof
  2013-11-04 15:26     ` Pete Ley
  0 siblings, 1 reply; 7+ messages in thread
From: Cecil Westerhof @ 2013-11-04 15:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

2013/11/4 Pete Ley <peteley11235@gmail.com>

> Cecil Westerhof <cldwesterhof@gmail.com> writes:
>
> As far as I know, you can do exactly this (the subtracting clock time
> from one tree and adding it to another) but it's triggered on idle time,
> so if you're working on something else in emacs it won't ask you to
> resolve your idle clock time.
>

I am still working, so it will not work I am afraid.

[-- Attachment #2: Type: text/html, Size: 806 bytes --]

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

* Re: Adding and subtracting from clocked entries.
  2013-11-04 15:02   ` Cecil Westerhof
@ 2013-11-04 15:26     ` Pete Ley
  0 siblings, 0 replies; 7+ messages in thread
From: Pete Ley @ 2013-11-04 15:26 UTC (permalink / raw)
  To: emacs-orgmode

Cecil Westerhof <cldwesterhof@gmail.com> writes:

> I am still working, so it will not work I am afraid.

Hopefully some org-mode guru can come along and explain how to trigger
the functionality arbitrarily or by some other means, since the manual
says what you're looking for is definitely doable.

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

* Re: Adding and subtracting from clocked entries.
  2013-11-04 14:02 Adding and subtracting from clocked entries Cecil Westerhof
  2013-11-04 14:47 ` Pete Ley
@ 2013-11-04 22:09 ` Bastien
  2013-11-05  7:54   ` Cecil Westerhof
  1 sibling, 1 reply; 7+ messages in thread
From: Bastien @ 2013-11-04 22:09 UTC (permalink / raw)
  To: Cecil Westerhof; +Cc: emacs-orgmode

Hi Cecil,

Cecil Westerhof <cldwesterhof@gmail.com> writes:

> For example I am working on project A from 09:00 until 13:00. But
> during this period I also worked for fifteen minutes on project B. I
> would like to subtract those fifteen minutes from project A and add
> them to project B. Can this be done?

I assume you stopped the clock on A, then started it on B, then
stopped it on B, then restarted it on A.

In this case, go to the end of the B clock timestamp, put the point
on the HH:MM string, and hit S-M-<down> three times, so that the clock
sum for B is zero, and the clock sum for A is added 15 minutes.

Hope that helps,

-- 
 Bastien

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

* Re: Adding and subtracting from clocked entries.
  2013-11-04 22:09 ` Bastien
@ 2013-11-05  7:54   ` Cecil Westerhof
  2013-11-05 10:05     ` Cecil Westerhof
  0 siblings, 1 reply; 7+ messages in thread
From: Cecil Westerhof @ 2013-11-05  7:54 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

2013/11/4 Bastien <bzg@gnu.org>

> > For example I am working on project A from 09:00 until 13:00. But
> > during this period I also worked for fifteen minutes on project B. I
> > would like to subtract those fifteen minutes from project A and add
> > them to project B. Can this be done?
>
> I assume you stopped the clock on A, then started it on B, then
> stopped it on B, then restarted it on A.
>
> In this case, go to the end of the B clock timestamp, put the point
> on the HH:MM string, and hit S-M-<down> three times, so that the clock
> sum for B is zero, and the clock sum for A is added 15 minutes.
>

Not exactly, but that is what I could do. I am going to try it out. Thank
you very much.


-- 
Cecil Westerhof

[-- Attachment #2: Type: text/html, Size: 1131 bytes --]

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

* Re: Adding and subtracting from clocked entries.
  2013-11-05  7:54   ` Cecil Westerhof
@ 2013-11-05 10:05     ` Cecil Westerhof
  0 siblings, 0 replies; 7+ messages in thread
From: Cecil Westerhof @ 2013-11-05 10:05 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

2013/11/5 Cecil Westerhof <cldwesterhof@gmail.com>

> 2013/11/4 Bastien <bzg@gnu.org>
>
>> > For example I am working on project A from 09:00 until 13:00. But
>> > during this period I also worked for fifteen minutes on project B. I
>> > would like to subtract those fifteen minutes from project A and add
>> > them to project B. Can this be done?
>>
>> I assume you stopped the clock on A, then started it on B, then
>> stopped it on B, then restarted it on A.
>>
>> In this case, go to the end of the B clock timestamp, put the point
>> on the HH:MM string, and hit S-M-<down> three times, so that the clock
>> sum for B is zero, and the clock sum for A is added 15 minutes.
>>
>
It works, but it gives pollution. It take the last minutes from B and put
them to A. (And it was somewhere in the middle I spend the time.) Also when
I have worked on two other projects while working on the project, it does
not work of-course.

Adding can be done by something like:
    CLOCK: [2013-11-05 Tue 00:00]--[2013-11-05 Tue 00:15] =>  0:15
    CLOCK: [2013-11-05 Tue 00:00]--[2013-11-05 Tue 00:15] =>  0:15

This works, two times 15 minutes is added, but sadly this does not work:
    CLOCK: [2013-11-05 Tue 00:15]--[2013-11-05 Tue 00:00] => -0:15

-- 
Cecil Westerhof

[-- Attachment #2: Type: text/html, Size: 2031 bytes --]

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

end of thread, other threads:[~2013-11-05 10:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 14:02 Adding and subtracting from clocked entries Cecil Westerhof
2013-11-04 14:47 ` Pete Ley
2013-11-04 15:02   ` Cecil Westerhof
2013-11-04 15:26     ` Pete Ley
2013-11-04 22:09 ` Bastien
2013-11-05  7:54   ` Cecil Westerhof
2013-11-05 10:05     ` Cecil Westerhof

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).