Y2K trickiness

From: Danielle Georgette <Danielle.Georgette_at_asx.com.au>
Date: Thu, 09 Dec 1999 09:47:10 +1100

Good morning all,

This is not strictly a Tru64 question, so I apologise in advance, but I
think it might be of interest to others out there thinking about every
possible option to fix problems they may encounter after Dec 31st, 1999.

If we are forced to roll any systems back to a pre-2000 date we have to make
sure that the day patterns remain the same also - ie 1st of Jan is a
saturday (it follows that the rest of the weekdays will also match the y2k
dates if both years are leap years). This apparently works for 1972 - and
the pattern is consistent for the next 10 years at least. So if we are
forced to roll back we roll back to 1972.

Now my question is - does anyone know the rules for when years are leap
years and when they are not. I know its all years divisible by 4, but I
remember being told that to keep up with creeping divergence there are a few
other years tossed in as leap years as well.

Anyone have an algorithm or a ruleset or just a pointer to doco on how you'd
get the info to make a program to determine if any given year is a leap year
in the past/future? Also, code to determine the closest year in the past
that follows the same day pattern as any given year would be of value. Of
course this is just a question of interest, its not that important. If
anyone can illuminate me please feel free.

Thanks,

Danielle Georgette
Received on Wed Dec 08 1999 - 22:48:32 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT