-
-
Save c0ldlimit/a80246b3ba963207fe4c to your computer and use it in GitHub Desktop.
#python generate dates for every third friday
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
#http://stackoverflow.com/questions/2295765/generating-recurring-dates-using-python | |
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