Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Last active August 29, 2015 14:15
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 satomacoto/f72326c61304d90ca52c to your computer and use it in GitHub Desktop.
Save satomacoto/f72326c61304d90ca52c to your computer and use it in GitHub Desktop.
month iteration
# https://labix.org/python-dateutil
from dateutil import rrule, parser
dt = parser.parse('2014-01-01')
for x in rrule.rrule(rrule.MONTHLY, dtstart=dt, count=3):
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment