new Date().getTime() new Date().valueOf()
const currentTimeInSeconds=Math.floor(Date.now()/1000); //unix timestamp in seconds