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