273
you are viewing a single comment's thread
view the rest of the comments
[-] danielquinn@lemmy.ca 12 points 1 month ago
from datetime import datetime
from dateutil.relativedelta import relativedelta

print(datetime.now() + relativedelta(years=10))  # 2035-08-24 12:02:49.795177
[-] kureta@lemmy.ml 1 points 1 month ago

Didn't know about relativedelta. Thanks!

this post was submitted on 24 Aug 2025
273 points (100.0% liked)

Programmer Humor

38564 readers
192 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS