Re: [ANNOUNCE]([kinda) DateTime::Calendar::Mayan

2003-04-04 Thread Eugene van der Pijll
Jean Forget schreef: Will your module contain the names of the days? Like 'Brocoli' (12 Pluviose) or 'Pomme de terre' (22 Vendemiaire)? My module will support brocoli for 12 Pluvi?se, but I am not so sure about Pomme de terre. My source (Agenda r?publicain 197) tells me that Pomme de terre

Re: DateTime and Holidays

2003-04-04 Thread Stephen R. Wilcoxon
On Wed 2003/04/02 08:45:06 +1000, Rick Measham [EMAIL PROTECTED] writes: (Although maybe Australia is the only country where public holidays get bumped so they don't fall on a weekend!) Nope. It happens in tons of different calendars. There are lots of different rules for it though (weekend

Re: DateTime and Holidays

2003-04-04 Thread Stephen R. Wilcoxon
On Tue 2003/04/01 13:06:05 -1000, Joshua Hoblitt [EMAIL PROTECTED] writ es: On Tue, 1 Apr 2003, Dave Rolsky wrote: On Tue, 1 Apr 2003, Joshua Hoblitt wrote: In Hawaii we have several extra state holidays that are observed: March, 26 - Prince Jonah Kuhio Kalanianaole Day June,

Re: DateTime and Holidays

2003-04-04 Thread Stephen R. Wilcoxon
On Tue 2003/04/01 16:43:59 PST, Brad Hughes [EMAIL PROTECTED] writes: Something to start thinking about now, then... There will certainly be DateTime::various business calendars. For example, I'm going to need, and therefore probably write, a New York Stock Exchange calendar subclass.

Re: [ANNOUNCE]([kinda) DateTime::Calendar::Mayan

2003-04-04 Thread Joshua Hoblitt
13.0.0.0.0 == 0.0.0.0.0 . Except that 0 isn't used on the baktun level, so that it stays 13 until 13.19.19.17.19. The day after that is 1.0.0.0.0. Date::Maya uses: $results [0] %= $max_baktun; $results [0] = $max_baktun if $results [0] == 0; I guess thats safes for RD values before the

Re: [ANNOUNCE]([kinda) DateTime::Calendar::Mayan

2003-04-04 Thread Joshua Hoblitt
I don't know what you mean by 'RD values'. Rata Die That's my interpretation of what the calendar FAQ writes about Mayan calendars. I'm not an expert on Mayan calendars, about all I know of it, I got from the calendar FAQ. Unfortunately the CC book doesn't cover this at all. I might try to

Re: DateTime::Duration compare

2003-04-04 Thread Dave Rolsky
On Fri, 4 Apr 2003 [EMAIL PROTECTED] wrote: I noticed DateTime::Duration = is not checking the 'reverse' flag. Also, it would be useful to be able to compare a duration to zero, in order to check if it is negative, positive or null. I could do that, just tell me if it is ok. Sounds fine

Re: DateTime::Duration compare

2003-04-04 Thread Dave Rolsky
On Fri, 4 Apr 2003 [EMAIL PROTECTED] wrote: I noticed DateTime::Duration = is not checking the 'reverse' flag. Also, it would be useful to be able to compare a duration to zero, in order to check if it is negative, positive or null. I could do that, just tell me if it is ok. Actually,

Re: DateTime::Duration compare

2003-04-04 Thread Dave Rolsky
On Fri, 4 Apr 2003, Dave Rolsky wrote: Also, it would be useful to be able to compare a duration to zero, in order to check if it is negative, positive or null. Ugh, I must take a moment before replying to mail. I thought about this a bit more and realized I don't really like it, because

Updated DateTime::Calendar dev docs

2003-04-04 Thread Dave Rolsky
I've updated the docs on developing a DateTime::Calendar module to reflect recent discussion of time zones, calendar without a time component, and some other API stuff I wanted to include. Please take a look. Questions and suggestions are welcome.

DateTime::Duration, length of a month?

2003-04-04 Thread Joshua Hoblitt
When converting a DateTime::Duration month to days - how many days should it be considering equivalent too? 30? 30.4? 31? -J --