📜  添加时间增量 pytohn - Python 代码示例

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

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