Created
February 17, 2025 00:29
-
-
Save hobojoe1848/fe996ba1c6e325205beee04eb9b965be to your computer and use it in GitHub Desktop.
What Week is it Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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