Re: Programming using 4GL
Posted in 1993
In article <C51FKL.3oB@promdist.pds.com> bill@promdist.pds.com (Bill Foote) writes: >(I'm pretty sure that we don't have leap year once every 400 years, and >that 2400 is the next leap year we skip... We _don't_ skip leap >year in 2000 (I think) because of a rule that says that we skip skipping >the leap year every 2000 years... Not quite. In the Gregorian calender there is a leap year in every year divisible by 4, unless it is divisible by 100 but not 400. ie 1900 wasn't a leap year, 2000 will be, 2100 won't be. 1600 would have been a leap year under the current calender, but this calendar was enacted in 1752 (in at least some countries) so 2000 will be the first time the exception-to-the-exception rule is used. If all you're interested in is dates from 1901 to 2099 then the normal 4-year rule will suffice. Hopefully this clarifies things a little. -- Hugh Grierson Fujitsu/ICL New Zealand - Software Development Centre hugh@nezsdc.icl.co.nz