Last active
September 1, 2021 05:14
-
-
Save Ending2015a/70a1f2f730f58b3eb3642229cfbe19f4 to your computer and use it in GitHub Desktop.
Python commonly used datetime format
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 | |
print( | |
datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
) | |
# '2021-09-01 13:09:06' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment