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