Skip to content

Instantly share code, notes, and snippets.

@usmanity
Created May 1, 2013 23:26
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 usmanity/5499164 to your computer and use it in GitHub Desktop.
Save usmanity/5499164 to your computer and use it in GitHub Desktop.
subtract a day (needs underscore)
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