Re: DateTime::TimeZone and etcetera zones
[email protected] (Dave Rolsky) Wed, 4 Dec 2013 23:06:01 -0600 (CST)
| Newsgroups | perl.datetime |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 5 Dec 2013, Alfie John wrote: > On Thu, Dec 5, 2013, at 10:53 AM, Dave Rolsky wrote: >> On Thu, 5 Dec 2013, Alfie John wrote: >> Does any sane software actually use these ancient time zone names? >> >> The only useful thing to do is use a zone like America/Chicago so you get >> DST transitions and such. If you want a DST-less zone that's simple to >> understand, you should use UTC, not some fixed offset from UTC (which >> will >> very confusingsly match up with different local time zones as DST comes >> and goes in various places). > > I planned on using them as a fallback when the Olson equivalent could > not be found. You might as well just pass an offset directly to DateTime: # This is UTC-10 DateTime->new( ..., time_zone => '-1000' ); -dave /*============================================================ http://VegGuide.org http://blog.urth.org Your guide to all that's veg House Absolute(ly Pointless) ============================================================*/