Skip to content

Instantly share code, notes, and snippets.

@P7h
Last active February 4, 2017 14:58
Show Gist options
  • Save P7h/466e398ece77cc3cff125726da7af4f0 to your computer and use it in GitHub Desktop.
Save P7h/466e398ece77cc3cff125726da7af4f0 to your computer and use it in GitHub Desktop.
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