|
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
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.