Last active
August 29, 2015 14:08
-
-
Save frafra/b3153ac67ca00c4ea5e9 to your computer and use it in GitHub Desktop.
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 | |
for y in [2015]: | |
for m in range(12): | |
for d in [1, 19]: # first monday, third friday (7*2+5) | |
print(date(y, m+1, (7-date(y, m+1, 1).weekday())%7+d)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reimplementation of https://gist.github.com/Fale/1b0a311252826e3bd672