Skip to content

Instantly share code, notes, and snippets.

@nicjansma
Last active December 11, 2015 21:58
Show Gist options
  • Save nicjansma/4666063 to your computer and use it in GitHub Desktop.
Save nicjansma/4666063 to your computer and use it in GitHub Desktop.
Adds Date.now() support for IE <= 8
if (!Date.now) {
Date.now = function() {
return new Date().valueOf();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment