Created
May 14, 2013 22:26
-
-
Save zykadelic/5580167 to your computer and use it in GitHub Desktop.
Date.now polyfill from Mozilla (https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Date/now#Compatibility)
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
if(!Date.now){ | |
Date.now = function now(){ | |
return new Date().getTime(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment