Tuesday 11 October 2016

Get a timestamp in JavaScript?

new Date().getTime();
Math.floor(Date.now() / 1000)


http://stackoverflow.com/questions/221294/how-do-you-get-a-timestamp-in-javascript

No comments:

Post a Comment