Skip to content

Instantly share code, notes, and snippets.

@kevinburkeshyp
Created May 1, 2015 00:09
Show Gist options
  • Save kevinburkeshyp/caafe33713e3142bedfc to your computer and use it in GitHub Desktop.
Save kevinburkeshyp/caafe33713e3142bedfc to your computer and use it in GitHub Desktop.
var d = Date.now();
// Subtract 5 minutes
d = new Date(d - 5 * 60 * 1000)
// Add ten minutes
d = new Date(d + 10 * 60 * 1000)
console.log(d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment