Javascript calculate Unix Time


let unix_time = Math.floor((new Date()).getTime() / 1000);