develooper Front page | perl.datetime | Postings from January 2007

SysV timezones in DT::TZ

Thread Next
From:
Zefram
Date:
January 25, 2007 15:41
Subject:
SysV timezones in DT::TZ
Message ID:
20070125234040.GA10323@fysh.org
I've knocked together an implementation of SysV/POSIX
timezone specifications for DateTime.  Code is at
<http://www.fysh.org/~zefram/tmp/SystemV.pm>.  This is my first go at
implementing anything in the guts of DT, so experts here please check
that I'm using the interfaces correctly.  I don't quite follow what the
semantics are meant to be when a DT object has its timezone changed.

I'm not clear on which DateTime methods a timezone object can rely on,
in the arguments it is given to the _for_datetime methods.  I need to
do Gregorian arithmetic even if the DateTime isn't Gregorian.  I used
only ->utc_rd_values and ->local_rd_values, and then called out to my
Date::ISO8601 module to do the date arithmetic.

Is it OK for me to put this on CPAN?

-zefram

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About