Answers for "phyton 2.7 convert timedelta to string"

0

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
Posted by: Guest on September-03-2020

Code answers related to "phyton 2.7 convert timedelta to string"

Python Answers by Framework

Browse Popular Code Answers by Language