Skip to content

Instantly share code, notes, and snippets.

@frafra
Last active August 29, 2015 14:08
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 frafra/b3153ac67ca00c4ea5e9 to your computer and use it in GitHub Desktop.
Save frafra/b3153ac67ca00c4ea5e9 to your computer and use it in GitHub Desktop.
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))
@frafra
Copy link
Author

frafra commented Nov 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment