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

Feedback on: Blind Date, July 09, 2001 at 11:34:03:

You are here: irt.org | About | Feedback | 2944 [ previous next ]

Feedback on:
Blind Date

Sent by
kris gale on July 09, 2001 at 11:34:03:

Worth:
Very worth reading

Comments:
good article, but i think
your LeapYear function is
slightly off...

according to the Calendar FAQ
(http://www.faqs.org/faqs/calendars/faq/part1/)...

"Every year divisible by 4 is a leap year. However, every year divisible by 100 is not a leap year. However, every year divisible by 400 is a leap year after all."

to properly implement this logic,
you'd have to do something along
the lines of:

function LeapYear(year)
{ var isleapyear = false;
if(year % 100 != 0 && year % 4 == 0)
isleap = true;
else if(year % 400 == 0)
isleapyear = true;
return isleapyear;
}



Other feedback on 'Blind Date' - show all

©2018 Martin Webb