Javascript: Get a unixtime value
I need a Unixtime in Javascript. This is the simplest way I came up with to get that value:
var unixtime = parseInt(new Date().getTime() / 1000);
I need a Unixtime in Javascript. This is the simplest way I came up with to get that value:
var unixtime = parseInt(new Date().getTime() / 1000);