News for hackers. Stuff that matters.
Re:Ask HN: Did you encounter any leap year bugs today? by LeoPanthera on Thursday February 29, 2024 @08:49PM (#39557583)
relativedelta will do it:

  from dateutil.relativedelta import relativedelta
  one_year = relativedelta(years=1)

There are no comments on this comment yet.