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

KLin

Lifer
Feb 29, 2000
29,500
125
106
I joined AT.

Where has the time gone?

:awe:
 
Last edited:
  • Like
Reactions: Ns1

ElFenix

Elite Member
Super Moderator
Mar 20, 2000
102,418
8,370
126
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.
 

Exterous

Super Moderator
Jun 20, 2006
20,394
3,463
126
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.
 

KLin

Lifer
Feb 29, 2000
29,500
125
106
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:

brianmanahan

Lifer
Sep 2, 2006
24,267
5,677
136
4 years? didn't you say you were leaving on your 4th anniversary? :D

4S0DATS.png