Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

phyton 2.7 convert timedelta to string

import datetime
start = datetime.datetime(2009,2,10,14,00)
end   = datetime.datetime(2009,2,10,16,00)
delta = end-start
print(str(delta))
# prints 2:00:00
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #phyton #convert #timedelta #string
ADD COMMENT
Topic
Name
9+8 =