const currentTimeInMilliseconds=Date.now(); // unix timestamp in milliseconds
var seconds = new Date().getTime() / 1000;