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