how to get unix time in milliseconds js code example Example: get epoch timestamp js Math.floor(Date.now() / 1000)