emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Raymond Zeitler <zeitra@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-clock-rounding-minutes -- non-zero value can cause double clocking
Date: Thu, 14 Mar 2019 18:21:21 +0100	[thread overview]
Message-ID: <87mulxv0by.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <1752809487.2399229.1552070015695@mail.yahoo.com> (Raymond Zeitler's message of "Fri, 8 Mar 2019 18:33:35 +0000 (UTC)")

Hello,

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 clockin-time of a task can be N less than
> the clockout-time of the previous task at certain times.  Thus, clock
> reports can show an extra N minutes total time for each occurrence of
> this effect.
> Consider this.
> Set org-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.  Its LOGBOOK 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.  But the clockin time for Bar is rounded *down*.  Thus, two tasks have started at the same time.
> * Tasks** TODO Foo   :LOGBOOK:   CLOCK: [2019-03-08 Fri 12:54]--[2019-03-08 Fri 13:00] =>  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 timesheet, it will report 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=clockout-time?

What about `org-clock-continuously'?

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2019-03-14 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.88.1552064418.32460.emacs-orgmode@gnu.org>
2019-03-08 18:33 ` org-clock-rounding-minutes -- non-zero value can cause double clocking Raymond Zeitler
2019-03-14 17:21   ` Nicolas Goaziou [this message]
2019-03-15 16:32     ` Raymond Zeitler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mulxv0by.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=zeitra@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).