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

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") }


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

Search: