How do I get the current date/time in seconds in Javascript?
I use this:
Math.round(Date.now() / 1000)
No need for new object creation (see doc Date.now())