4 ms·
Now the mess that is called JavaScript dates has crept into any system imaginable in the world. I can understand we needed to go for the lowest denominator but
by dep_b 10y ago
Now the mess that is called JavaScript dates has crept into any system imaginable in the world. I can understand we needed to go for the lowest denominator but Crockford's card really could cram in another line with a date time string format.
- petre 10y agoJust use epoch or ISO1601.
- dep_b 10y agoYou're preaching to the choir here. Hell is other people's code.
- inimino 10y agoI think adding a date type would have probably doubled the complexity of JSON and taken it right out of the sweet spot that has made it popular.
- niftich 10y agoThis. Datetime is hard, because RFC 3339 is underspecified [1], and TOML wrestled with this a lot. [1] https://news.ycombinator.com/item?id=12364393#12364805 https://news.ycombinator.com/item?id=12364393#12364805
- halomru 10y agoI thought strings with ISO8601-encoded dates was the de-facto norm (i.e. "20161026T2044+0200 for this comment's timestamp). Have I been living in a bubble with the majority being less sane?