Re: Y2k compliance

Mr. James W. Laferriere (babydr@baby-dragons.com)
Sat, 5 Dec 1998 14:14:27 -0800 (PST)


Hello All, OK.. somebodies program says divisable by 400
is still a leap year.

Where is it Defined ? , ie: some document publically available .
(prefered on the web from a known standards body) Tia

On Sat, 5 Dec 1998, Rik van Riel wrote:
> On Fri, 4 Dec 1998, S. Shore wrote:
>
> > In fact, the year 2000 isn't a leap year. A little-known rule of
> > leapyears (iirc) is that any year divisible by 100 (i think) can't
> > be a leapyear.
>
> Oww, I don't believe this!
>
> #define leapyear(year) (!(year % 4) && ((year % 100) || \
> !(year % 400)))
>
> I hope this matter is settled now, once and for all
> (well, until we need to define a new calender due to
> the earth's rotational speed slowing down).
>
> cheers,
>
> Rik -- the flu hits, the flu hits, the flu hits -- MORE
> +-------------------------------------------------------------------+
> | Linux memory management tour guide. H.H.vanRiel@phys.uu.nl |
> | Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ |
> +-------------------------------------------------------------------+
>
>
> -
> 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/
>

, JimL
+-----------------------------------------------------------------------+
| James W. Laferriere - Network Engineer - babydr@baby-dragons.com |
| System Techniques - 25416 - 22nd S. - Des-Moines, WA 98198 |
| Give me VMS -or- Give me Linux -but- only on AXP |
+-----------------------------------------------------------------------+

-
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/