this post was submitted on 01 Dec 2023
333 points (98.0% liked)

Programmer Humor

32588 readers
1701 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 1 year ago (2 children)
[–] 018118055@sopuli.xyz 16 points 1 year 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 1 year ago* (last edited 1 year ago)

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

[–] xmunk@sh.itjust.works 8 points 1 year ago

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