I have the following time:
time = datetime.timedelta(days=1, hours=4, minutes=5, seconds=33, milliseconds=623)
Is it possible, to convert the time in milliseconds?
Like this:
101133623.0
I found a possibility to solve the problem
import datetime
time = datetime.timedelta(days=1, hours=4, minutes=5, seconds=33, milliseconds=623)
result = time.total_seconds()*1000
print(result)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With