📜  如何在python代码示例中添加时间增量

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

代码示例2
import datetime

ts = ts + datetime.timedelta(seconds=1)
ts = ts + datetime.timedelta(minutes=1)
ts = ts + datetime.timedelta(hours=1)
ts = ts + datetime.timedelta(days=1)