Skip to content

Instantly share code, notes, and snippets.

Created May 5, 2015
What would you like to do?
#python generate dates for every third friday
import dateutil.rrule as dr
import dateutil.parser as dp
import dateutil.relativedelta as drel
rr = dr.rrule(dr.MONTHLY,byweekday=drel.FR(3),dtstart=start, count=10)
print map(str,rr)
print map(str,rr[::2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment