Skip to content

Instantly share code, notes, and snippets.

@Ending2015a
Last active September 1, 2021 05:14
Show Gist options
  • Save Ending2015a/70a1f2f730f58b3eb3642229cfbe19f4 to your computer and use it in GitHub Desktop.
Save Ending2015a/70a1f2f730f58b3eb3642229cfbe19f4 to your computer and use it in GitHub Desktop.
Python commonly used datetime format
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