Created
March 8, 2018 10:15
-
-
Save KanshuYokoo/e19cf787b83b28f37776f88f8a329c31 to your computer and use it in GitHub Desktop.
current time in unix time by Javascript
This file contains hidden or 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
seconds | |
Math.round((new Date()).getTime() / 1000); | |
milli second | |
Math.round((new Date()).getTime()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment