Skip to content

Instantly share code, notes, and snippets.

@adamesque
Created April 25, 2011 17:00
Show Gist options
  • Save adamesque/940823 to your computer and use it in GitHub Desktop.
Save adamesque/940823 to your computer and use it in GitHub Desktop.
Calculate elapsed time (to be added to a "When did you mean to turn this off" Harvest overnight timer UI)
(new Date("Apr 22 2011 17:00") - new Date("Apr 22 2011 16:01")) / (1000 * 60 * 60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment