@perishthethought@lemm.ee to Programmer Humor@lemmy.mlEnglish • 1 year agoI think my code will be OK...i.imgflip.comimagemessage-square54fedilinkarrow-up1341arrow-down17file-text
arrow-up1334arrow-down1imageI think my code will be OK...i.imgflip.com@perishthethought@lemm.ee to Programmer Humor@lemmy.mlEnglish • 1 year agomessage-square54fedilinkfile-text
minus-square@018118055@sopuli.xyzlinkfedilink16•1 year ago2100 not a leap year (divisible by 100). 2400 is a leap year (divisible by 400). Developing for dates is a minefield.
minus-square@Midnight1938@reddthat.comlinkfedilink1•edit-21 year agoNow imagine working on non Georgian, and the year is 2060
minus-square@xmunk@sh.itjust.workslinkfedilink8•1 year 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.
Now imagine working on non Georgian, and the year is 2060
Because they’re not leap years but are
0 === year % 4