Skip to content

Instantly share code, notes, and snippets.

@perforb
Created January 8, 2013 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perforb/4485276 to your computer and use it in GitHub Desktop.
Save perforb/4485276 to your computer and use it in GitHub Desktop.
Variation of current Unix timestamp.
// using static methods
console.log(Date.now()); // 1357662789317
// if you have Date objects
console.log(new Date().getTime()); // 1357662789317
// numeric context
console.log(+new Date); // 1357662789317
console.log(+new Date()); // 1357662789317
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment