5 ms·
DST rules are just insane. I'm responsible for some code where I just drew the line and 40 some odd people in one of the Antarctic stations are just going to ha
by jws 7y ago
DST rules are just insane. I'm responsible for some code where I just drew the line and 40 some odd people in one of the Antarctic stations are just going to have to live with wrong time part of the year if they ever run my code. I'm not adding another code path and test case just because these people wanted their own special concept of time. I don't remember the pattern, but I think it was maybe a daylight savings time and then an extra one stacked in the middle.
- petre 7y agoWe have endless problems with DST as well. I can't wait for the EU directive that abolishes it. Russia dropped it years ago. We'll still have to support past times and other timezones though.
- meepso 7y agoI wonder how long time it will take to forget DST if it is abolished. Will that messy spaghetti code be ripped out and never seen again.
- jon-wood 7y agoMost standard libraries still have support for the Julian calendar. That stuff is never going away.
- mkl 7y agoI doubt it's "most". Python, Javascript, and C++ don't seem to. The only ones I found that do seem to are C# and Java.
- inlined 7y agoI just got a ruby gem from someone who actually made tables on the stuff. I made a script that cut out far past and future times to lower loading time from 10m to 30s and figured I could upgrade the gem to leverage an expert’s research as timezones changed (e.g. India changing zones)
- jki275 7y agoJulian calendar is still used by the US Navy. Every supply department office you go into has a conversion table up on the wall.