From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raymond Zeitler Subject: org-clock-rounding-minutes -- non-zero value can cause double clocking Date: Fri, 8 Mar 2019 18:33:35 +0000 (UTC) Message-ID: <1752809487.2399229.1552070015695@mail.yahoo.com> References: Reply-To: Raymond Zeitler Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2399228_1254167247.1552070015694" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h2KJW-0007PT-GU for emacs-orgmode@gnu.org; Fri, 08 Mar 2019 13:33:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h2KJV-0008Br-Ky for emacs-orgmode@gnu.org; Fri, 08 Mar 2019 13:33:46 -0500 Received: from sonic307-9.consmr.mail.ne1.yahoo.com ([66.163.190.32]:33106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h2KJU-000871-QR for emacs-orgmode@gnu.org; Fri, 08 Mar 2019 13:33:45 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org ------=_Part_2399228_1254167247.1552070015694 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There is a problem when org-clock-rounding-minutes is non-zero, say N.=C2= =A0 The problem is that the=C2=A0clockin-time of a task can be N less than = the clockout-time=C2=A0of the previous task at certain times.=C2=A0 Thus, c= lock reports can show an extra N minutes total time for each occurrence of = this effect. Consider this. Set=C2=A0org-clock-rounding-minutes to 6. (This allows for tracking time in= 0.1 hour increments.) Create an org file with two tasks: * Tasks** TODO Foo** TODO Bar Clock into Task Foo at, say, 12:54 plus or minus 2 minutes.=C2=A0 Its LOGBO= OK will show the expected 12:54 timestamp. Clock into Bar at 12:57, which is halfway between 0.90th hour and 1.00th ho= ur. Result, the clockout time for Foo is rounded up.=C2=A0 But the clockin time= for Bar is rounded *down*.=C2=A0 Thus, two tasks have started at the same = time. * Tasks** TODO Foo=C2=A0 =C2=A0:LOGBOOK:=C2=A0 =C2=A0CLOCK: [2019-03-08 Fri= =C2=A012:54]--[2019-03-08 Fri 13:00] =3D>=C2=A0 0:06=C2=A0 =C2=A0:END:** TO= DO Bar=C2=A0 =C2=A0:LOGBOOK:=C2=A0 =C2=A0CLOCK: [2019-03-08 Fri=C2=A012:54]= =C2=A0 =C2=A0:END: So when I use org-mode to track time for my weekly timesheet, it will repor= t that my total clocked time for any given day is several minutes more than= the time I've been at work! I expect that the clockin time of Bar will be the same as the clockout time= of Foo. Is there another variable I need to set in order to enforce clockin-time=3D= clockout-time? org-version returns 9.1.2-37 - Ray ------=_Part_2399228_1254167247.1552070015694 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
There is a problem when= org-clock-rounding-minutes is non-zero, say N.  The prob= lem is that the clockin-time of = a task can be N less than the clockout-time of the previ= ous task at certain times.  Thus, clock reports can show an extra N mi= nutes total time for each occurrence of this effect.

Consider this.

Set org-clock-roundin= g-minutes to 6. (This allows for tracking time in 0.1 hour increments.)

Create an org file with two= tasks:

* Tasks
** TODO Foo
** TODO Bar

Clock= into Task Foo at, say, 12:54 plus or minus 2 minutes.  Its LOGBOOK wi= ll show the expected 12:54 timestamp.

Clock into B= ar at 12:57, which is halfway between 0.90th hour and 1.00th hour.

Result, the clockout time for Foo is rounded up.  But= the clockin time for Bar is rounded *down*.  Thus, two tasks have sta= rted at the same time.

<= /div>
* = Tasks
** TODO Foo
   :LOGBOOK:
&= nbsp;  CLOCK: [2019-03-08 Fri 12:54]--[2019-03-08 Fri 13:0= 0] =3D>  0:06
   :END= :
** TODO Bar
   :LOGBOOK:
 = ;  CLOCK: [2019-03-08 Fri 12:54]
   :END:

So when I use org-mode to track time for my weekly tim= esheet, it will report that my total clocked time for any given day is seve= ral minutes more than the time I've been at work!

I expect that the clockin time of Bar will be the same as the clockout ti= me of Foo.

Is there another variable I need to set= in order to enforce clockin-time=3Dclockout-time?

org-version returns 9.1.2-37

- Ray

=



------=_Part_2399228_1254167247.1552070015694-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-clock-rounding-minutes -- non-zero value can cause double clocking Date: Thu, 14 Mar 2019 18:21:21 +0100 Message-ID: <87mulxv0by.fsf@nicolasgoaziou.fr> References: <1752809487.2399229.1552070015695@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:46027) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4U2q-000777-KL for emacs-orgmode@gnu.org; Thu, 14 Mar 2019 13:21:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4U2p-0005bw-Dv for emacs-orgmode@gnu.org; Thu, 14 Mar 2019 13:21:28 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:57319) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h4U2p-0005am-4j for emacs-orgmode@gnu.org; Thu, 14 Mar 2019 13:21:27 -0400 In-Reply-To: <1752809487.2399229.1552070015695@mail.yahoo.com> (Raymond Zeitler's message of "Fri, 8 Mar 2019 18:33:35 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Raymond Zeitler Cc: emacs-orgmode@gnu.org Hello, Raymond Zeitler writes: > There is a problem when org-clock-rounding-minutes is non-zero, say > N.=C2=A0 The problem is that the=C2=A0clockin-time of a task can be N les= s than > the clockout-time=C2=A0of the previous task at certain times.=C2=A0 Thus,= clock > reports can show an extra N minutes total time for each occurrence of > this effect. > Consider this. > Set=C2=A0org-clock-rounding-minutes to 6. (This allows for tracking time = in 0.1 hour increments.) > Create an org file with two tasks: > * Tasks** TODO Foo** TODO Bar > > Clock into Task Foo at, say, 12:54 plus or minus 2 minutes.=C2=A0 Its LOG= BOOK will show the expected 12:54 timestamp. > Clock into Bar at 12:57, which is halfway between 0.90th hour and 1.00th = hour. > Result, the clockout time for Foo is rounded up.=C2=A0 But the clockin ti= me for Bar is rounded *down*.=C2=A0 Thus, two tasks have started at the sam= e time. > * Tasks** TODO Foo=C2=A0 =C2=A0:LOGBOOK:=C2=A0 =C2=A0CLOCK: [2019-03-08 F= ri=C2=A012:54]--[2019-03-08 Fri 13:00] =3D>=C2=A0 0:06=C2=A0 =C2=A0:END:** = TODO Bar=C2=A0 =C2=A0:LOGBOOK:=C2=A0 =C2=A0CLOCK: [2019-03-08 Fri=C2=A012:5= 4]=C2=A0 =C2=A0:END: > So when I use org-mode to track time for my weekly timesheet, it will rep= ort that my total clocked time for any given day is several minutes more th= an the time I've been at work! > I expect that the clockin time of Bar will be the same as the clockout ti= me of Foo. > Is there another variable I need to set in order to enforce > clockin-time=3Dclockout-time? What about `org-clock-continuously'? Regards, --=20 Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Raymond Zeitler Subject: Re: org-clock-rounding-minutes -- non-zero value can cause double clocking Date: Fri, 15 Mar 2019 16:32:38 +0000 (UTC) Message-ID: <502437065.6146370.1552667558302@mail.yahoo.com> References: <1752809487.2399229.1552070015695@mail.yahoo.com> <87mulxv0by.fsf@nicolasgoaziou.fr> Reply-To: Raymond Zeitler Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6146369_493822726.1552667558301" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4plE-000127-V6 for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 12:32:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4plD-0007tO-T0 for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 12:32:44 -0400 Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:38423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4plD-0007sS-D4 for emacs-orgmode@gnu.org; Fri, 15 Mar 2019 12:32:43 -0400 In-Reply-To: <87mulxv0by.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org ------=_Part_6146369_493822726.1552667558301 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Nicolas Goaziou wrote: =20 >Raymond Zeitler writes: >> There is a problem when org-clock-rounding-minutes is non-zero, say >> N.=C2=A0 The problem is that the=C2=A0clockin-time of a task can be N le= ss than >> the clockout-time=C2=A0of the previous task at certain times.-snip- >> I expect that the clockin time of Bar will be the same as the clockout t= ime of Foo. >> Is there another variable I need to set in order to enforce >> clockin-time=3Dclockout-time? > What about `org-clock-continuously'? It was set to nil.=C2=A0 I toggled it to non-nil, and the clock behavior is= as=C2=A0desired. Thank you for pointing me in the right direction! - Ray =20 ------=_Part_6146369_493822726.1552667558301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Nicolas Goaziou <m= ail@nicolasgoaziou.fr> wrote:

>Raymond Zeitler <zeitra@yahoo.com> writes:

>> There is a problem when org-clock-rounding-minutes is non-zero, = say
>> N.  The problem is that the clocki= n-time of a task can be N less than
>> the clockout= -time of the previous task at certain times.
-snip-
&= gt;> I expect that the clockin time of Bar will be the same as the clock= out time of Foo.
>> Is there another variable I nee= d to set in order to enforce
>> clockin-time=3Dcloc= kout-time?

> What about `org-clock-continuously'= ?

It was set to nil.&nbs= p; I toggled it to non-nil, and the clock behavior is as desired.

Thank you for pointing me in the right direction!=

- Ray
------=_Part_6146369_493822726.1552667558301--