Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

timedelta format python

from datetime import timedelta
timedelta_object = timedelta(hours=24.5)

print(str(timedelta_object)) # '1 day, 0:30:00'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #timedelta #format #python
ADD COMMENT
Topic
Name
7+2 =