From owner-freebsd-hackers Fri Mar 12 0:45:20 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id B9DAE1525B for ; Fri, 12 Mar 1999 00:44:43 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id AAA16503; Fri, 12 Mar 1999 00:36:04 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdg16484; Fri Mar 12 08:36:02 1999 Date: Fri, 12 Mar 1999 00:35:57 -0800 (PST) From: Julian Elischer To: Florin Nicolescu Cc: FreeBSD-hackers Subject: Re: Y2K bug In-Reply-To: <199903120731.JAA11891@nick.ro> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG no if ((Year % 4) == 0) { if ((Year % 100) == 0) { if (( Year % 400) == 0) { Feb = 29; } else { Feb = 28; } } else { Feb = 29; } } else { Feb = 28; } On Fri, 12 Mar 1999, Florin Nicolescu wrote: > Hi, > > According to the discontinuities in the earth move around the sun, once > a four years there is inserted an extra day (29 of February), but once a > 400 years (when the first 2 digits of the year divide by 4) it is not > added. This is the case for 2000 (20 mod 4 = 0). When I inserted the > date 29 of February 2000 in FreeBSD, it has accepted it OK, meaning that > it believes that 2000 has the date 29 of Feb. I don't know about other > systems, but I know that a lot of people ignore this rule (I've just > looked into my agenda, and it has the same error). > > Ciao, > Nick > > -- > ------------------------------------------------------------------ > | Florin-Nicolae Nicolescu | > | University of Bucharest, Faculty of Mathematics | > | Bucharest,Romania | > ------------------------------------------------------------------ > | Friends don't let friends use Windows. | > | Double your hard drive space instantly! Delete Windows! | > ------------------------------------------------------------------ > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message