On Wed, Jan 12, 2000 at 07:58:46PM -0500, Brandon S. Allbery KF8NH wrote:
[...]
> | February has 29 days when "year % 4 = 0", except when "year % 100 = 0" and
> | NOT when "year % 400 = 0".
> +--->8
> ...in which case February ends on the 28th as usual. What is so difficult
> to understand about "not a leap year"?
I think you failed to parse the double negative. He's saying not
a leap year when "year % 100 == 0" and is a leap year (he means NOT the
"except") when "year % 400", so February ends on the 29th.
> --
> brandon s. allbery os/2,linux,solaris,perl allbery@kf8nh.apk.net
> system administrator kthkrb,heimdal,gnome,rt allbery@ece.cmu.edu
> carnegie mellon / electrical and computer engineering kf8nh
> We are Linux. Resistance is an indication that you missed the point.
Mike
-- Michael H. Warfield | (770) 985-6132 | mhw@WittsEnd.com (The Mad Wizard) | (770) 331-2437 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:22 EST