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
My preferred way:
var msEpoch = (+new Date()); var sEpoch = (+new Date()) / 1000;
For more information on the + jump down the rabbit hole.
+