Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q228

irt.org | About | Feedback | 1578 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q228

Sent by
edwin van den oetelaar on August 04, 2000 at 10:30:43:

Worth:
Worth reading

Comments:
your function to check for a leap year is incorrect, it does not handle years correctly that are multiples of 100, your function returns at the wrong point.

This might be better:

function isLeapYear (Year) {
if (((Year % 4)==0) && ((Year % 100)!=0) || ((Year % 400)==0)) {
return (true);
}
else {
return (false);
}

Just my $ 0.02




Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.