> If you're using this for DateTime::Calendar::Mayan, please don't. That's
> the wrong hammer for this nail ;)
Ok. How about... DT from DTCM, pass that the DT:Duration object. Then convert back
to DTCM or just get the utc_rd_days value from it. :)
> DateTime::Duration is really only intended
On Fri, 4 Apr 2003, Joshua Hoblitt wrote:
> When converting a DateTime::Duration month to days - how many days
> should it be considering equivalent too? 30? 30.4? 31?
It's not converted to days, it literally increments the month portion of a
date.
If you're using this for DateTime::Calendar::Ma
When converting a DateTime::Duration month to days - how many days should it be
considering equivalent too? 30? 30.4? 31?
-J
--
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.
http://datetime.perl.org/developer/calendar.html
If you're written a DateTime module and you'd like to have it be part of
the perl-date-time CVS project, this is in invitation to join.
The advantages are:
- shared CVS, which means you can edit the website (particularly them
module list), dev docs, etc.
- commit emails (if you care)
- I or oth
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, bec
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.
Act
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.
Sou
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.
- Flavio S. Glock
> 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
On Fri, Apr 04, 2003 at 11:28:49AM -1000, Joshua Hoblitt wrote:
> > 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] =
> 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
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::. For example, I'm going to need,
> and therefore probably write, a New York Stock Exchange calendar subclass.
Woo-hoo. I won't have to
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 Kalaniana
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 (weeke
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 "Pom
16 matches
Mail list logo