nodejs get current unix timestamp code example
Example 1: node get unix timestamp
Math.floor(new Date() / 1000) // in seconds
Example 2: how to get seconds in timstamps js
var seconds = new Date().getTime() / 1000;
Math.floor(new Date() / 1000) // in seconds
var seconds = new Date().getTime() / 1000;