Skip to content

Instantly share code, notes, and snippets.

@P7h P7h/week_number.py
Last active Feb 4, 2017

Embed
What would you like to do?
Current week# using Python
import datetime
year,week_num,day_of_the_week = datetime.datetime.now().isocalendar()
print year,week_num,day_of_the_week
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.