Created
May 1, 2013 23:26
-
-
Save usmanity/5499164 to your computer and use it in GitHub Desktop.
subtract a day (needs underscore)
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
now = Date.now().toString(); | |
day = 86400; | |
diff = _.initial(now, 3) | |
diff = diff.join('') - day | |
alert("here " + diff) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment