• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

4 leap years ago today... UPDATE: 6 leap years now!

you're lucky 2000 fell into the exception to the exception otherwise you'd have joined on march 1 and you'd have been here for 15 anniversaries instead of 4.

rule: every year divisible by 4 has a leap day added, but, years ending in 00 don't have leap days added, but years where the first 2 digits are divisible by 4 have a leap day added.
 
rule: every year divisible by 4 has a leap day added, but, years ending in 00 don't have leap days added, but years where the first 2 digits are divisible by 4 have a leap day added.

I was with you right up until you started using numbers.
 
I was with you right up until you started using numbers.

PHP:
Public Function DaysInYear(iYear As Long)
Dim Century As Integer
Dim Years As Integer
Century = Left(iYear, 2)
Years = Right(iYear, 2)

If Century Mod 4 = 0 Then
    If Years = 0 Then
        DaysInYear = 366
    ElseIf Years Mod 4 = 0 Then
        DaysInYear = 366
    Else
        DaysInYear = 365
    End If
Else
    If Years = 0 Then
        DaysInYear = 365
    ElseIf Years Mod 4 = 0 Then
        DaysInYear = 366
    Else
        DaysInYear = 365
    End If
End If

End Function

Does that clear it up?
 
Last edited:
4 years? didn't you say you were leaving on your 4th anniversary? 😀

4S0DATS.png
 
Back
Top