I want to get the time delta between two timestamps: time1
and time2
, and the result should be shown in millseconds. For example:
time1=17:00:00:121
time2=17:01:00:121
the result will be 60*1000=60000.
I can't find such a method in python (mostly shown in seconds), and datetime.timedelta.total_seconds()
only returns seconds without the minus of minutes, hours and days.
So anyone can tell me how to make it, thanks!