DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python change format of datetime
now = datetime.now() time_string = now.strftime("%Y-%m-%d %H:%M:%S") print(time_string)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#change
#format
#datetime
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit