📜  phyton 2.7 将 timedelta 转换为字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:17.130000             🧑  作者: Mango

代码示例1
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