📜  datetime.timedelta 月 - Python 代码示例

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

代码示例1
from datetime import timedelta
from dateutil.relativedelta import relativedelta

end_date = start_date + relativedelta(months=delta_period) + timedelta(days=-delta_period)