Skip to content

Instantly share code, notes, and snippets.

@DamnedFacts
Created September 5, 2018 17:51
Show Gist options
  • Select an option

  • Save DamnedFacts/e8f696fdb90bb25604431617e2e8fa42 to your computer and use it in GitHub Desktop.

Select an option

Save DamnedFacts/e8f696fdb90bb25604431617e2e8fa42 to your computer and use it in GitHub Desktop.
Create a schedule of dates from a start date, through a total number of weeks, with optional weekly skipping
from datetime import date, timedelta
def ta_meetings(year, month, day, skip_weeks=2, total_weeks=15):
for dd in range(0, total_weeks, skip_weeks):
d = date(year, month, day) + timedelta(days=dd*7)
print(d.strftime("%a, %d %b %Y, B&L 470, 3:00-3:30pm"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment