Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime milliseconds

from datetime import datetime

dt_obj = datetime.strptime('20.12.2016 09:38:42,76',
                           '%d.%m.%Y %H:%M:%S,%f')
millisec = dt_obj.timestamp() * 1000

print(millisec)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #datetime #milliseconds
ADD COMMENT
Topic
Name
9+3 =