you are viewing a single comment's thread
view the rest of the comments
[–] 12 points 1 year ago (1 child)
from datetime import datetime
from dateutil.relativedelta import relativedelta

print(datetime.now() + relativedelta(years=10))  # 2035-08-24 12:02:49.795177
  • source
  • hideshow 1 child comment