3 ms·
Most of the pre-Y2K programs I saw were dumber: their leap year test was simply "year mod 4 = 0". So they were going to falsely report a century as a leap year
by thombat 4y ago
Most of the pre-Y2K programs I saw were dumber: their leap year test was simply "year mod 4 = 0". So they were going to falsely report a century as a leap year BUT were saved by the fact that the next century number was divisible by 4. Sort of "two dumbass decisions make a right"