Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to print time python 3

import datetime
now = datetime.datetime.now()
print (now.strftime("%Y-%m-%d %H:%M:%S"))
# key: https://strftime.org/
 
PREVIOUS NEXT
Tagged: #print #time #python
ADD COMMENT
Topic
Name
1+2 =