Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I 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.


This. 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


I 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?


Just use epoch or ISO1601.


You're preaching to the choir here. Hell is other people's code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: