× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Florin Todor - YYZ Concord wrote:
Lim, your example is not the best one; if Feb. 29 is valid for specific
year, it is valid for the (year-100); the opposite is, also, true...
I thing there is only one exception to this rule, the year 1900 (which,
if I'm not mistaken, it wasn't a leap year, but 2000 it was...)

I haven't taken the time to prove it, but I think this is true for any year y where y mod 400 = 0, due to:

> if (year modulo 4 is 0) and (year modulo 100 is not 0) or (year modulo > 400 is 0)
>
> then leap
> else no_leap

(from http://en.wikipedia.org/wiki/Leap_year#Algorithm)

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.