timestamp in javascript in number code example
Example 1: js timestamp
var timestamp = new Date().getTime();
Example 2: javascript timestamp in seconds
const ts = () => Math.floor(new Date().getTime() / 1000);
var timestamp = new Date().getTime();
const ts = () => Math.floor(new Date().getTime() / 1000);