HP3000-L Archives

November 1997, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Wed, 12 Nov 1997 11:02:10 PST8
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
>Subject: Re: Y2K: Leap Year Or Not?
>Author:  Klaus Franke <[log in to unmask]> at CCGATE
>Date:    11/12/97 05:56 AM


>Hi,

>a nice routine, i found in some of our old c-sources:

>#define leap_year(yy)    ((yy & 3) == 0 ? 1 : 0)

       >Klaus Franke

Now... My 'C' skills are a little rusty but the above 'code' does *not* take
into consideration the 100 year and 400 year aspects of the leap year rule.

Regards

Paul H. Christidis

ATOM RSS1 RSS2