Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 1998 15:56:52 -0800 (PST)
From:      "Jonathan M. Bresler" <jmb>
To:        Swerda@aol.com (Swerda)
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: y2k
Message-ID:  <199803242356.PAA23277@hub.freebsd.org>
In-Reply-To: <2363a99d.351839a3@aol.com> from Swerda at "Mar 24, 98 05:54:25 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Swerda wrote:
> i dont believe 2000 is a leap year
> a leap year is divisible EVENLY BY 4
> except NOT one divisible by 400

	2000 is a leap year.

	if  (year % 400 == 0 || 
	    (year % 100 != 0 && year % 4 == 0))
		printf("leap year\n");
jmb

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199803242356.PAA23277>