timestamp to seconds nodejs code example
Example 1: node get unix timestamp
Math.floor(new Date() / 1000) // in seconds
Example 2: get epoch timestamp js
Math.floor(Date.now() / 1000)
Math.floor(new Date() / 1000) // in seconds
Math.floor(Date.now() / 1000)