[Date.now()](<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now>) returns the number of whole milliseconds that have elapsed since 1 January 1970 00:00:00 UTC.

t = Date.now();

For example, Date.now() returns 1461069314 if it was called on 19 April 2016 at 12:35:14 GMT.