92 Contributors: 2 Thursday, July 21, 2016
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial:
Roadmap: roadmap
Download eBook


Download javascript eBook


  • millisecondsAndMicrosecondsSincePageLoad =;
  • millisecondsSinceYear1970 =;
  • millisecondsSinceYear1970 = (new Date()).getTime();

Remarks is available in modern web browsers and provides reliable timestamps with sub-millisecond resolution.

Since and (new Date()).getTime() are based on the system time, they often get skewed by a few milliseconds when the system time is automatically synchronized.

Related Examples