Skip to content

Instantly share code, notes, and snippets.

@idcesares
Created May 5, 2021 22:31
Show Gist options
  • Select an option

  • Save idcesares/fe1b85f9102985c3b1142c5e8e3f3414 to your computer and use it in GitHub Desktop.

Select an option

Save idcesares/fe1b85f9102985c3b1142c5e8e3f3414 to your computer and use it in GitHub Desktop.
Shows how many days have passed since the beginning of the year
from datetime import datetime
day_of_year = datetime.now().timetuple().tm_yday
print(f"What's the Current Day Number? {day_of_year} days have passed since the beginning of the year.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment