Help with a world time clock?
February 10, 2004 9:16 AM
Subscribe
World clocks. I am trying to put together a clock application and can't work out how to discern the actual time is in each city. The time zone part is easy, but a great many countries (most?) use seasonal time adjustments. I have an online world clock on my screen and a physical one hanging above my head. How do they work?
posted by elliot100 to computers & internet (4 comments total)
Slightly more generally, every time standard consists of a few parameters, mainly offset to UTC and daylight savings time start/end. Given these parameters you can always compute the local time from UTC. If you don't want to punch in all this data yourself, either grab it from a piece of software like glibc, or just pull it from the OS you're using; Windows, MacOS and Unices all have conversion routines somewhere.
posted by fvw at 9:35 AM on February 10, 2004