Skip to content

Instantly share code, notes, and snippets.

@hobojoe1848
Created February 17, 2025 00:29
Show Gist options
  • Save hobojoe1848/fe996ba1c6e325205beee04eb9b965be to your computer and use it in GitHub Desktop.
Save hobojoe1848/fe996ba1c6e325205beee04eb9b965be to your computer and use it in GitHub Desktop.
What Week is it Script
from datetime import datetime
def get_current_week():
current_date = datetime.now()
current_week = current_date.isocalendar()[1]
print(f"Current week of the year: {current_week}")
if __name__ == "__main__":
get_current_week()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment