Created
April 25, 2020 10:19
-
-
Save aniruddha27/af160c06ffe774a50da4c22c43a48145 to your computer and use it in GitHub Desktop.
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
d1 = datetime.now() | |
print('Weekday :',d1.strftime('%A')) | |
print('Month :',d1.strftime('%B')) | |
print('Week number :',d1.strftime('%W')) | |
print("Locale's date and time representation :",d1.strftime('%c')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment