perishthethought@lemm.ee to Programmer Humor@lemmy.mlEnglish · 11 months agoI think my code will be OK...i.imgflip.comimagemessage-square50fedilinkarrow-up1323arrow-down16file-text
arrow-up1317arrow-down1imageI think my code will be OK...i.imgflip.comperishthethought@lemm.ee to Programmer Humor@lemmy.mlEnglish · 11 months agomessage-square50fedilinkfile-text
minus-square018118055@sopuli.xyzlinkfedilinkarrow-up14·11 months ago2100 not a leap year (divisible by 100). 2400 is a leap year (divisible by 400). Developing for dates is a minefield.
minus-squarexmunk@sh.itjust.workslinkfedilinkarrow-up7·11 months agoBecause they’re not leap years but are 0 === year % 4
Why
2100 not a leap year (divisible by 100). 2400 is a leap year (divisible by 400). Developing for dates is a minefield.
Because they’re not leap years but are
0 === year % 4