Node Get Unix Timestamp
Math.floor(new Date() / 1000) // in seconds
just-saved-you-a-stackoverflow-visit
Math.floor(new Date() / 1000) // in seconds
var currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds
var currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
function getUnixTime() {
return (Date.now() / 1000) | 0;
}
Math.floor(+new Date() / 1000)