Math.round(new Date().getTime() / 1000).toString()
Math.floor(new Date() / 1000) // in seconds
Math.floor(+new Date() / 1000)