Low-resolution timestamps

suggest change

Date.now() returns the number of whole milliseconds that have elapsed since 1 January 1970 00:00:00 UTC.

const t = Date.now();

Date.now() returns milliseconds. 1461069314000 is 19 April 2016 12:35:14 UTC. The 10-digit value 1461069314 is that instant in seconds, which Date.now() does not return. It is 17 January 1970 if you pass it to new Date as milliseconds.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents