Hacker News new | ask | show | jobs
by Dylan16807 1412 days ago
If you get it added to javascript, then it will likely get added to JSON5 or a successor. Otherwise that's out of scope.
1 comments

Javascript has a timestamp type, Date.

Of course what you mean is for javascript to have a timestamp literal. Well, the closest equivalent would be: `new Date("2021-12-17T03:24:00")`

It's cumbersome, but I would accept it:

    { mytimestamp: new Date("2021-12-17T03:24:00") }