Andrew Daviel (andrew@daviel.ml.org)
Sun, 17 Jan 1999 05:27:20 -0800 (PST)
On Sun, 17 Jan 1999, Chris Hunter wrote:
> >Only if it is half-smart, and knows about the 100-year rule but not the
> >400-year rule.
>
> >2000 _is_ a leap year, because 2000 is evenly divisible by 400.
>
> The formula for the Julian calendar has every fourth year a leap year. The
> Gregorian calendar has every year exactly divisible by four as leap year
> but century years which are divisible by 400 are not leap years.
>
I think Ted is right, AFAIK.
Divisible by 4 - leap year "cal 2 1996"
Divisible by 100 - not a leap year "cal 2 1900" "cal 2 2100"
Divisible by 400 - a leap year "cal 2 2000" "cal 2 2400"
sorry about dev/rtc - meant proc/rtc. I see
$ cat /proc/rtc
rtc_time : 12:52:12
rtc_date : 1999-01-17
alarm : 16:33:53
DST_enable : no
BCD : yes
24hr : yes
square_wave : no
alarm_IRQ : no
update_IRQ : no
periodic_IRQ : no
periodic_freq : 1024
batt_status : okay
Andrew Daviel
http://vancouver-webpages.com/andrew
Deniable unless digitally signed.
This archive was generated by hypermail 2.0b3 on Sun 17 Jan 1999 - 05:28:36 PST