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