Skip to content

Instantly share code, notes, and snippets.

@soobrosa
Created June 12, 2014 09:21
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 soobrosa/0c7922f9bb4cabe12204 to your computer and use it in GitHub Desktop.
Save soobrosa/0c7922f9bb4cabe12204 to your computer and use it in GitHub Desktop.
for a daterange
def daterange(start_date, end_date):
for n in range(int ((end_date - start_date).days)):
yield start_date + timedelta(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment