Created
December 15, 2018 01:10
-
-
Save astraloverflow/5b63169e55d82bc7be16f2a12d322439 to your computer and use it in GitHub Desktop.
One-liner function to get current Unix time (seconds since 1970-01-01 0:00 UTC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getUnixTime = () => ~~(Date.now() / 1000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment