API Design Questions (4)
Max Kanat-Alexander
mkanat at bugzilla.org
Fri Oct 2 23:28:54 UTC 2009
On 10/02/2009 01:04 PM, Gervase Markham wrote:
> Although it requires a lot of external knowledge to parse correctly.
>
> What time was it UTC on 2005-10-30 01:50 America/Los Angeles?
>
> You need to know that the DST rules were different for the US back then,
> and the date of change was different, and that they change at 2am, etc.
> etc.
In Perl, DateTime.pm does this for you. I suspect there are similar
modules available for other languages. Technically all of this info is
available in the zoneinfo database, also.
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.
More information about the developers
mailing list