const a = parseInt(Math.round((new Date).getTime() / 1e3).toString()); console.log(a)