10 ms·
> Timezones are fairly simple to handle I guess you've never had to deal with time zones then. DST isn't the only thing you need to take into account. You're
by hadoukenio 12y ago
> Timezones are fairly simple to handle
I guess you've never had to deal with time zones then.
DST isn't the only thing you need to take into account. You're forgetting that cities, states and countries modify their timezones for political reasons e.g. America/Sitka went from UTC-8 to UTC-9 in 1983. Just to repeat this if it's not clear, that's a UTC offset change for the Sitka zone, not a DST update.
- deleted 12y ago[deleted]
- nl 12y agoThis kind of thing isn't even that rare, if you look historically and even applies to whole days. The most extreme example was how the Swedish calendar attempted to swap to the Gregorian calendar: n November 1699, Sweden decided that, rather than adopting the Gregorian calendar outright, it would gradually approach it over a 40-year period. The plan was to skip all leap days in the period 1700 to 1740. Every fourth year, the gap between the Swedish calendar and the Gregorian would reduce by one day, until they finally lined up in 1740. In the meantime, this calendar would not only not be in line with either of the major alternative calendars, but also the differences between them would change every four years. In accordance with the plan, February 29 was omitted in 1700, but due to the Great Northern War no further reductions were made in the following years. In January 1711, King Charles XII declared that Sweden would abandon the calendar, which was not in use by any other nation and had not achieved its objective, in favour of a return to the older Julian calendar. An extra day was added to February in the leap year of 1712, thus giving it a unique 30-day length (February 30). In 1753, one year later than England and its colonies, Sweden introduced the Gregorian calendar, whereby the leap of 11 days was accomplished in one step, with February 17 being followed by March 1.[1] So February 30 1712(!) is a valid date in Sweden, but February 17 1753 + 1 day = March 1. Imagine building something like a utility billing system over a time period like that.... [1] http://en.wikipedia.org/wiki/Swedish_calendar#Solar_calendar http://en.wikipedia.org/wiki/Swedish_calendar#Solar_calendar