emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Chris Leyon <cleyon@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Computed negative CLOCK time 1 hour off
Date: Fri, 17 Oct 2008 07:27:59 +0200	[thread overview]
Message-ID: <A73D7700-0767-40BF-90F9-27F132B28ED7@uva.nl> (raw)
In-Reply-To: <5ea706d0810161903g5d8edc68xfd6fa02f7ef95c6b@mail.gmail.com>

Hi Chris
On Oct 17, 2008, at 4:03 AM, Chris Leyon wrote:

> There is a precedent in the Emacs manual -- Appendix E, Antinews: "For
> those users who live backwards in time [...]"

Great answer.  And thanks for the patch.  I am applying it.
However,  I am sure there are more similar problems, so
I am not at all sure that calculating clock sums, or summing
properties that contain times, will work properly with negative
time intervals.  I did not pay any attention to this when writing
those functions, and it is likely that similar problems will exist.

- Carsten


>
>
> :-)
>
> I admit there may not be great practical utility in a negative time
> range.  But the interval is well-defined so it ought to be computed
> correctly.  I would say that a wrong answer is worse than no answer
> since it may be believed correct at first glance, when it is not.
>
> Anyway, I'm including a patch for 6.09 which seems to fix the  
> problem....
>
> On Thu, Oct 16, 2008 at 12:39 PM, Carsten Dominik
> <dominik@science.uva.nl> wrote:
>> Hi Chris,
>>
>> what could possibly be the purpose of a negative time range?  Are you
>> working for a secret government agency?
>>
>> :-)
>>
>> - Carsten
> <neg-time.patch>_______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      reply	other threads:[~2008-10-17  5:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 15:24 Computed negative CLOCK time 1 hour off Chris Leyon
2008-10-16 16:39 ` Carsten Dominik
2008-10-17  2:03   ` Chris Leyon
2008-10-17  5:27     ` Carsten Dominik [this message]

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=A73D7700-0767-40BF-90F9-27F132B28ED7@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=cleyon@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).