📜  python datetime 减去秒 - Python 代码示例

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

代码示例1
import datetime

X = 65
result = datetime.datetime.now() - datetime.timedelta(seconds=X)