Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KanshuYokoo/e19cf787b83b28f37776f88f8a329c31 to your computer and use it in GitHub Desktop.
Save KanshuYokoo/e19cf787b83b28f37776f88f8a329c31 to your computer and use it in GitHub Desktop.
current time in unix time by Javascript
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