|
-
May 20th, 1999, 02:36 AM
#1
When is it a Leap Year?
Hi,
Silly of me to ask this, but then...
What are *ALL* the conditions that i need to check for, if i were to decide it the given year is a leap year?
Ravi
-
May 20th, 1999, 02:40 AM
#2
Re: When is it a Leap Year?
public Function IsLeapYear(iYear as Integer) '-- Check for leap year
If (iYear Mod 4 = 0) And _
((iYear Mod 100 <> 0) Or (iYear Mod 400 = 0)) then
IsLeapYear = true
else
IsLeapYear = false
End If
End Function
I got that function from a mailing list (if I only knew which one).
-
May 20th, 1999, 03:46 AM
#3
Re: When is it a Leap Year?
Thanks a lot. That was Fast!..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|