Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime milliseconds

from datetime import datetime

print(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3])
 
PREVIOUS NEXT
Tagged: #python #datetime #milliseconds
ADD COMMENT
Topic
Name
4+4 =