On Unix, I can run date \'+%s\' to get the amount of seconds since epoch. But I need to query that in a browser front-end, not back-end.
date \'+%s\'
Is there a way
The most simple version:
Math.floor(Date.now() / 1000)