Does someone know of any standard test criteria
or declaration of compliance format for Y2K
compliance instead of "yea, we are"?
Two areas of compliance that I've uncovered are
(1) Time calcs across the year 2000. Calculate
from Dec 31, 1999 to Jan 1, 2000 and one
SHOULD get about 1 day instead of 99 yrs.
This is avoided by alot of companies by the
use of 4 digits for years instead of 2 digits.
(2) Leap Year calculations. The algorithm for leap
years is
a. If "year" is evenly divisible by 400, then it's a leap year.
If not evenly divisible, then
b. If "year" is evenly divisible by 4,
but "year" is NOT evenly divisible by 100, then it's a leap year.
Thus, 1900 is not a leap year but 2000 is leap year.
Thus, year 2000 has 366 days and not 365 days.
Day of the week calculations makes 28 Feb 2000 a Monday and
March 1 2000 a Wednesday because Feb 29 2000 is a Tuesday.
Week of the year calculations makes the 11th week of 2000
from 5 March to 11 March and NOT 6 March to 12 March.
Anyone care to comment?
Regards, Doug
mailto:[email protected]