Skip to content

Instantly share code, notes, and snippets.

@UltiRequiem
Created February 18, 2023 12:09
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 UltiRequiem/fc614b8cedd7760ad5094f3164ce94f3 to your computer and use it in GitHub Desktop.
Save UltiRequiem/fc614b8cedd7760ad5094f3164ce94f3 to your computer and use it in GitHub Desktop.
get all days of the year cool format productivity schedule
import datetime
import calendar
YEAR = 2023
month = 2
for _ in range(11):
num_days = calendar.monthrange(YEAR, month)[1]
days = [datetime.date(YEAR, month, day) for day in range(1, num_days + 1)]
for day in days:
print(day.strftime("%A %d"))
month += 1
print()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment