this post was submitted on 24 Aug 2025
456 points (98.9% liked)

Programmer Humor

25958 readers
626 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Diplomjodler3@lemmy.world 46 points 2 days ago (8 children)

The Python won't give an accurate date here because it doesn't take into account leap years.

[–] rtxn@lemmy.world 24 points 1 day ago (2 children)

timedelta marks time in days, seconds, and microseconds. It doesn't take leap years into account because the concept of years is irrelevant to timedelta. If you need to account for leap years, you need a different API.

[–] nilloc@discuss.tchncs.de 1 points 10 hours ago

365.25*10 would at least get you closer.

load more comments (1 replies)
load more comments (6 replies)