JavaScript getTime()

The internal clock in JavaScript counts from midnight January 1, 1970.

The getTime() function returns the number of milliseconds since then: