On Thu, 3 Apr 2003, Joshua Hoblitt wrote:

> > Actually, I'm starting to think that it might be better instead to simply
> > have a local_rd_values method and use that instead, maybe.
>
> Or barf on floating times.

Or document it.

In practice, I think _most_ people working with multiple calendar systems
will not even care about the time component, and will be doing stuff like:

 my $date = DateTime->new( year => 1900, month => 7, day => 6 );

 my $mayan = DateTime::Calendar::Mayan->from_object( object => $date );

 # display mayan date

 $mayan->add( baktuns => 2 );

 my $new_date = DateTime->from_object( object => $mayan );

 # display Gregorian date

In this case, since floating has the same utc_rd_values as
local_rd_values, everything works just fine.

> > I think trying to impose modern time systems on ancient calendar is not
> > very feasible.
>
> So the million dollar question is should DT::C::Mayan support timezones?
> Or is UTC the right thing to do?

I'd say supporting time zones in other calendars is probably not worth the
effort, even if we could agree on what "correct" support would look like
;)


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to