Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert iso 8601 to milliseconds python

import datetime
time = "2020-02-25T00:02:43.000Z"
date = datetime.datetime.strptime(time, '%Y-%m-%dT%H:%M:%S.%fZ')
timestamp = str((date - datetime.datetime(1970, 1, 1)).total_seconds()*1000)
print(timestamp[:-2])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #iso #milliseconds #python
ADD COMMENT
Topic
Name
3+5 =