Skip to content

Instantly share code, notes, and snippets.

@geoluther
Created August 29, 2017 03:20
Show Gist options
  • Save geoluther/25543c8e97292937a52b21d3a6c1c7b5 to your computer and use it in GitHub Desktop.
Save geoluther/25543c8e97292937a52b21d3a6c1c7b5 to your computer and use it in GitHub Desktop.
// mongo shell query to find date range, 120 = number of minutes
query = { date: { $gt: new Date(ISODate().getTime() - 1000 * 60 * 120) } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment