293
submitted 5 months ago by sunshine@lemmy.ml to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 3 points 5 months ago

or just this

from datetime import datetime

today = datetime.today()
ten_years_ago = today.replace(year=today.year - 10)
print("Date 10 years ago:", ten_years_ago.date())
this post was submitted on 24 Aug 2025
293 points (97.7% liked)

Programmer Humor

40197 readers
6 users here now

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

Rules:

founded 6 years ago
MODERATORS