this post was submitted on 24 Aug 2025
456 points (98.9% liked)
Programmer Humor
25958 readers
903 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
365.25, surely
Never use numbers when calculating dates. Use the data formats and constants the calendar library provides.
365.2425
didn't we gain or lose 0.00000001ish of a day recently? Like from tonga exploding or antarctica melting or something i can't remember.
That kind of thing happens surprisingly often.
https://en.wikipedia.org/wiki/Leap_second
Sure, if you want things at midday instead of midnight.