es6 timestamp default date now code example
Example 1: js timestamp
var timestamp = new Date().getTime();
Example 2: get epoch timestamp js
Math.floor(Date.now() / 1000)
var timestamp = new Date().getTime();
Math.floor(Date.now() / 1000)