# from Keith Ivey
# on Thursday 03 January 2008 15:00:
>Johan Vromans wrote:
>> I'd say that January 30 + 1 month should be March 1, not February
>> 29.
>
>I might agree, but whichever alternative is chosen,
>
> (January 30 + 1 month) + 1 month != January 30 + 2 months
Exactly.
It adds days just fine if that's what you want :-D
Weeks are more straightforward than months and years until relativistic
effects take hold.
I'm still working on "when is this Sunday", which is going to be a bit
tricky. ISO 8601 defines the week starting on Monday ("this Sunday" is
always in the future) while the bible (and perl's localtime) claims it
as the first day ("this Sunday" is always in the past.) This gets even
more puzzling if the phrase "See you in church this Sunday" has any
meaning.
I'm wondering whether to have an option. I'm tempted to just go with
ISO, but Time::Piece has it otherwise, so consistency would suffer
(unless it's done with classes -- i.e. at() from a Date::Piece::ISO
yields a Time::Piece::ISO.)
--Eric
--
"It is impossible to make anything foolproof because fools are so
ingenious."
--Murphy's Second Corollary
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------