Created
January 2, 2016 21:21
-
-
Save b4oshany/1c8b42dc839f1eeefcd8 to your computer and use it in GitHub Desktop.
Print the next 100 Christmas weekend dates
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 datetime, timedelta, date | |
dates = [] | |
today = datetime.today() | |
years = ["25/12/%d" % x for x in xrange(today.year, today.year + 101) if date(x, 12, 25).weekday() == 3] | |
print years |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment