Skip to content

Instantly share code, notes, and snippets.

@b4oshany
Created January 2, 2016 21:21
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 b4oshany/1c8b42dc839f1eeefcd8 to your computer and use it in GitHub Desktop.
Save b4oshany/1c8b42dc839f1eeefcd8 to your computer and use it in GitHub Desktop.
Print the next 100 Christmas weekend dates
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