this post was submitted on 01 Dec 2023
325 points (97.9% liked)

Programmer Humor

32054 readers
1651 users here now

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

Rules:

founded 5 years ago
MODERATORS
 

I know this isn't any kind of surprise, and yet, well...

you are viewing a single comment's thread
view the rest of the comments
[–] Midnight1938@reddthat.com 3 points 9 months ago (2 children)
[–] 018118055@sopuli.xyz 16 points 9 months ago (1 children)

2100 not a leap year (divisible by 100). 2400 is a leap year (divisible by 400). Developing for dates is a minefield.

[–] Midnight1938@reddthat.com 1 points 9 months ago* (last edited 9 months ago)

Now imagine working on non Georgian, and the year is 2060

[–] xmunk@sh.itjust.works 8 points 9 months ago

Because they're not leap years but are 0 === year % 4