js date object get unix time code example
Example 1: javasctipt unix timestamp from date
Math.round(new Date().getTime() / 1000).toString()
Example 2: nodejs current timestamp unix
Math.floor(+new Date() / 1000)
Math.round(new Date().getTime() / 1000).toString()
Math.floor(+new Date() / 1000)