Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q228, August 04, 2000 at 10:30:43:

You are here: 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



Other feedback on 'irt.org FAQ Knowledge Base Q228' - show all

©2018 Martin Webb