[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] Re: Calendar spans
From: |
jemarch |
Subject: |
[pdf-devel] Re: Calendar spans |
Date: |
Sun, 18 May 2008 18:31:57 +0200 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/23.0.60 (powerpc-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
> Using the precedence rule first we add 1 year to 2007-01-31 resulting
> in 2008-01-31. Then we add 1 month (February in a leap year) resulting
> in 2008-02-29.
>
> What do you think?
Well... don't really like it. This means that there are three different
time origins for which the calendar time span gives the same result...
isn't it?
29 January 2007 + (1 year + 1 month) = 29 February 2008
30 January 2007 + (1 year + 1 month) = 29 February 2008
31 January 2007 + (1 year + 1 month) = 29 February 2008
Yes. If we are talking about months then these three operations should
yield the same result. Just imagine you should make the same operation
to calculate the payments for the DSL connection that you pay monthly
:)
Anyway I would not worry about that. From the Adobe PDF SDK Reference:
Note: There is some ambiguity in a calendar time span; to add an
exact time span (for example, 2592000 seconds rather than one
month), use ASDateAddTimeSpan().
It seems we are facing exactly the same problem :)
- [pdf-devel] Re: Calendar spans, (continued)
- [pdf-devel] Re: Calendar spans, jemarch, 2008/05/13
- [pdf-devel] Re: Calendar spans, Aleksander Morgado, 2008/05/17
- [pdf-devel] Re: Calendar spans, jemarch, 2008/05/18
- [pdf-devel] Re: Calendar spans, Aleksander Morgado, 2008/05/18
- [pdf-devel] Re: Calendar spans, jemarch, 2008/05/18
- [pdf-devel] Re: Calendar spans, Aleksander Morgado, 2008/05/18
- Re: [pdf-devel] Re: Calendar spans, Stuart Jansen, 2008/05/18
- Re: [pdf-devel] Re: Calendar spans, jemarch, 2008/05/18
- Re: [pdf-devel] Re: Calendar spans, Aleksander Morgado, 2008/05/18
- Re: [pdf-devel] Re: Calendar spans, jemarch, 2008/05/18
- [pdf-devel] Re: Calendar spans,
jemarch <=