Leap Year Rule 
Author Message
 Leap Year Rule

Ok, sometime ago i learned this but have forgotten and cannot find it one
the web anywhere... so like this year (2000) is not suppose to be a leap
year but it is??!!!! what's the rule i know if Year Mod 4 = 0 then it is a
leap year except every 100 or 400 years or something like that...


Sat, 13 Jul 2002 03:00:00 GMT  
 Leap Year Rule
Function IsLeapYear(Year)
  If Year Mod 400 = 0 Then
    IsLeapYear = True
  ElseIf Year Mod 100 = 0 Then
    IsLeapYear = False
  ElseIf Year Mod 4 = 0 Then
    IsLeapYear = True
  Else
    IsLeapYear = False
  End If
End Function

=-=-=
Steve
-=-=-


Quote:
> Ok, sometime ago i learned this but have forgotten and cannot find it one
> the web anywhere... so like this year (2000) is not suppose to be a leap
> year but it is??!!!! what's the rule i know if Year Mod 4 = 0 then it is a
> leap year except every 100 or 400 years or something like that...



Sat, 13 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help:Rules For Leap Year???

2. Is the year 2000 really a leap year?

3. Does IsDate check for a leap year?

4. Does IsDate check for a leap year?

5. Leap year function

6. Counting weeks, but what about leap year??

7. Counting weeks, but what about leap year??

8. Counting weeks, but what about leap year??

9. Counting weeks, but what about leap year??

10. leap year

11. leap years

12. Short leap year code

 

 
Powered by phpBB® Forum Software