[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-evaluate-time-range
From: |
Bernt Hansen |
Subject: |
Re: [O] org-evaluate-time-range |
Date: |
Tue, 28 Jun 2011 18:57:10 -0400 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
John J Foerch <address@hidden> writes:
> Hello,
>
> I have a question about the use-case for org-evaluate-time-range,
> because for what I would use it for, its behavior seems
> counter-intuitive. Consider a time range:
>
> <2011-08-12 Fri>--<2011-08-14 Sun>
>
> Calling org-evaluate-time-range on this range reports 2 days, but for
> situations when I would use time ranges, I would have expected an
> _inclusive_ count of 3 days. The span represented from a friday through
> a sunday is indeed a span of 3 days.
>
> Can anyone explain the logic behind the current behavior? Thank you.
Timestamps with no time are considered to be at midnight (00:00)
So Midnight Friday to Midnight Sunday is 48 hours.
-Bernt
--
Bernt