📜  datatime 在浮点数中添加时间 - Python 代码示例

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

代码示例1
>>> import datetime
>>> d = datetime.datetime(2016, 11, 17)
>>> delta = datetime.timedelta(hours=4.1326742)
>>> d + delta
datetime.datetime(2016, 11, 17, 4, 7, 57, 627120)