On Mon, 20 Oct 2003, Rick Measham wrote:

> First version released to CPAN yesterday.
>
> Provides LMT (Local Mean Time) for DateTime.
>
> When given a longitude, this module calculates the Local Mean Time Time Zone.

There's one problem with this modules.  DT.pm relies on the time zone
object returning a value from the name() method, that when fead to
DT::TZ->new, will recreate the original object.  This is used in DT.pm's
Storable hooks in order to avoid saving the whole time zone object.  Right
now, if someone were to freeze and thaw a DT object which used an LMT time
zone, it would probably throw an error when they tried to thaw it.

One possible fix is to have name() return undef for your object, and then
DT.pm can explicitly check for this, and save the whole object.

The downside to this is that it would mandate that all time zone
implementations outside the DT::TZ core return undef for name().

Other suggestions are welcome.


-dave

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

Reply via email to