5 ms·
On top of that DST is one of the nastiest things when dealing with time / date in CS. I’m scared as well that there will be another edge case when the DST is b
by drinchev 8y ago
On top of that DST is one of the nastiest things when dealing with time / date in CS.
I’m scared as well that there will be another edge case when the DST is being demolished from EU as the time calculation in the past and the future will have another “if” clause.
- narrowtux 8y agotzdata is a database about time and it has all this builtin. Even dates when countries switched from one system to another. So if your code uses the tzdata database through a library, you probably don't have to do anything.
- secabeen 8y agoYeah, and as a database of time changes over the last 50 years, it's not going to go away, as you'll need it for historical dates, and for other time zone changes that occur anyways.
- thomastjeffery 8y agoThose kind of edge cases already exist.
- buboard 8y agobut timezone changes happen all the time https://www.timeanddate.com/news/time/ https://www.timeanddate.com/news/time/