On Mon, 28 Feb 2005 [EMAIL PROTECTED] wrote:
freezing and have itOn Mon, 28 Feb 2005, John Siracusa wrote:
Can't you just nuke the giant DT:TZ ref beforeIOW, save the TZ stringauto-re-vivify when first used after it's thawed?re-grab a ref to the("floating", "local", "America/Chicago") and thenhave to freeze the DT::TZDT::TZ singleton as needed. That way, you don'tat all.
Oh yeah. That's what it already does ;)
It should do that, but there seems to be something wrong:
$dt = DateTime->today; $dt->set_time_zone( "America/Chicago" ); print $dt->STORABLE_freeze, "\n" '
utc_rd_days:732005|utc_rd_secs:0|rd_nanosecs:0|version:0.28DateTime::Locale::root=HASH(0x838d4a4)DateTime::TimeZone::America::Chicago=HASH(0x8328ca0)SCALAR(0x8328da8)
Note that this was added in DT::TZ 0.26. DT.pm itself didn't have to be changed, IIRC.
-dave
/*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/