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

Feedback: irt.org FAQ Knowledge Base Q228

Feedback on: irt.org FAQ Knowledge Base Q228

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

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



Sent by michael preciado on Thursday February 14, 2008 at 17:06:12 - feedback #5208

Worth:
Worth reading

Length:

Technical:

Comments:
There is a typo in the document.write statement. To get the current
year, you need: today.getYear() (The () are missing)





©2018 Martin Webb