Date: Fri, 12 Mar 1999 00:35:57 -0800 (PST) From: Julian Elischer <julian@whistle.com> To: Florin Nicolescu <fnicoles@pcnet.pcnet.ro> Cc: FreeBSD-hackers <freebsd-hackers@FreeBSD.ORG> Subject: Re: Y2K bug Message-ID: <Pine.BSF.3.95.990312002949.3160A-100000@current1.whistle.com> In-Reply-To: <199903120731.JAA11891@nick.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <fnicoles@pcnet.pcnet.ro> |
> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.990312002949.3160A-100000>
