3 ms·
Oh wow, I was complaining about working with dates in JavaScript around 2010 or so. It only took 15 years to sort this out.
by huskywall 2y ago
Oh wow, I was complaining about working with dates in JavaScript around 2010 or so. It only took 15 years to sort this out.
- moffkalast 2y agoWell assuming this actually sorts it out, which remains to be seen.
- ppseafield 2y agoHaving used the API with a polyfill, it is a bit verbose and may seem a little obtuse at times. However, it allows you to explicitly differentiate between Date, Time, (Plain)DateTime, and ZonedDateTime. I have had to fix plenty of bugs because a datetime in the browser, datetime on the server, and UTC got mixed up at some point, and this API makes that a lot more difficult (and not likely to happen accidentally).
- Someone1234 2y agoDates/Times/Calendars, and all the politics therein, is perhaps the second most complex thing computers are asked to do. The first being human languages (UNICODE, LTR Vs. RTL, CTL, Encoding, Sorting/Collation, Normalization, etc). Everyone agrees that Date in Javascript wasn't very good, but getting agreement over how to solve thousands of legitimately hard problems takes time. My viewpoint is that it is IMPRESSIVE it ONLY took them 15-years to get this far, and I congratulate everyone and all the hard work it took.
- huskywall 2y agoPoint taken, I realize it's complicated stuff. My gripe with it was more that other exotic features were being implemented while this was being neglected.