Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Time duration in seconds

from datetime import timedelta

t = timedelta(days = 5, hours = 1, seconds = 33, microseconds = 233423)
print("total seconds =", t.total_seconds())
 
PREVIOUS NEXT
Tagged: #Python #Time #duration #seconds
ADD COMMENT
Topic
Name
2+5 =