Unix Time Stamp in js code example
Example 1: how to get timestamp in javascript of a date object
new Date().getTime()
new Date().valueOf()
Example 2: node get unix timestamp
Math.floor(new Date() / 1000) // in seconds
new Date().getTime()
new Date().valueOf()
Math.floor(new Date() / 1000) // in seconds