Skip to content

Instantly share code, notes, and snippets.

@ksloan
Created June 12, 2014 04:47
Show Gist options
  • Save ksloan/77eac4740f9e63b258b5 to your computer and use it in GitHub Desktop.
Save ksloan/77eac4740f9e63b258b5 to your computer and use it in GitHub Desktop.
subtract time from date object
d.setMinutes(d.getMinutes() - num_mins);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment