Last active
August 24, 2018 18:05
-
-
Save yang-zhang/dd2868f924031ea0667d50c4d28d4bb0 to your computer and use it in GitHub Desktop.
Format printable date time in 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 | |
datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
datetime.datetime.now().strftime('%Y-%m-%d-%H') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment