https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/e0be9dcd8e96f9...
e.g.:
>>> from dateutil.relativedelta import relativedelta >>> date = datetime.utcnow().date() >>> date datetime.date(2020, 2, 29) >>> date + relativedelta(years=1) datetime.date(2021, 2, 28)
Thanks.
It also has this incorrect example: https://docs.python.org/3/library/datetime.html#examples-of-...
https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/e0be9dcd8e96f9...