[time-nuts] The Problem with Time & Timezones - Computerphile

Hal Murray hmurray at megapathdsl.net
Fri May 9 14:07:19 EDT 2014


holrum at hotmail.com said:
> Ahh,  but with Lady Heather you can specify the time zone offset (down to
> the second) and the when the daylight savings time switchovers occur.   And
> from experience,  I can tell you that the code to do it is a royal pain in
> the ass...  not all that hard to do,  but a pain to test. 

Part of the problem is that "when the daylight savings time switchovers 
occur" changes over time.  The problem is a whole lot easier if all you are 
interested in is converting the current UTC to the current local time.

The *nix world uses the time-zone database.  I assume it is available on 
Windows too.
  https://en.wikipedia.org/wiki/Tz_database


-- 
These are my opinions.  I hate spam.






More information about the time-nuts mailing list