Feedback on: Blind Date
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
- Blind Date - kris gale July 09, 2001 at 11:34:03:
- Blind Date - Mark Horrocks 09:17:21 2/03/01
- Blind Date - Jim Robb 14:43:06 10/20/00
|