this post was submitted on 24 Aug 2025
282 points (97.6% liked)

Programmer Humor

37996 readers
166 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] danielquinn@lemmy.ca 12 points 4 days ago (1 children)
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 4 days ago

Didn't know about relativedelta. Thanks!