Last active
August 29, 2015 14:11
-
-
Save veiset/6e505f02eb0f8ebe60cb to your computer and use it in GitHub Desktop.
This file contains hidden or 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, timedelta | |
start = date(1337,1,1) | |
delta = date.today() - start | |
print len([date for date in | |
[start + timedelta(days=n) for n in range(delta.days)] | |
if date.day == 13 | |
if date.weekday() == 4]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment