It would be better to use: ```Math.floor(Date.now() / 1000)```.