Hacker News new | ask | show | jobs
by stickfigure 1413 days ago
Looks great! Please add an unambiguous timestamp type :-)
1 comments

If you get it added to javascript, then it will likely get added to JSON5 or a successor. Otherwise that's out of scope.
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") }