Last active
February 4, 2017 14:58
-
-
Save P7h/466e398ece77cc3cff125726da7af4f0 to your computer and use it in GitHub Desktop.
Current week# using Python
This file contains 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
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