Created
July 18, 2014 12:19
-
-
Save anton-rudeshko/23f9d473ab4af869fd16 to your computer and use it in GitHub Desktop.
Detect timestamp: seconds vs. millis
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
var isTimeStamp = (function(MAX_INT) { | |
return function(number) { | |
return parseInt(number, 10) > MAX_INT; | |
}; | |
})(Math.pow(2, 31) - 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment