Created
April 18, 2014 22:15
-
-
Save somyamohanty/11066762 to your computer and use it in GitHub Desktop.
Date range
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
from dateutil.rrule import rrule, DAILY, HOURLY | |
a = date(2009, 5, 30) | |
b = date(2009, 6, 9) | |
for dt in rrule(DAILY, dtstart=a, until=b): | |
print dt.strftime("%Y-%m-%d") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment