Skip to content

Instantly share code, notes, and snippets.

@pmagwene
Created September 9, 2011 21:51
Show Gist options
  • Save pmagwene/1207427 to your computer and use it in GitHub Desktop.
Save pmagwene/1207427 to your computer and use it in GitHub Desktop.
Python code for generating class meeting dates
from datetime import *
from dateutil.rrule import rrule
springclasses = list(rrule(WEEKLY, byweekday=(TU,TH), dtstart=date(2012,01,11),until=date(2012,4,25)))
for c in springclasses:
print c.strftime("%A, %d %B %Y")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment