JulianCalendar: IsLeapDay |
Returns a boolean indicating if the specific day is a leap day.
Public Function IsLeapDay( ByVal Year As Long, ByVal Month As Long, ByVal Day As Long, Optional ByRef Era As Variant ) As Boolean
Unlike the Gregorian calendar, the Julian calendar defines a leap year as a year that is evenly divisible by four with no exceptions. Therefore, the calendar is inaccurate by one day every 128 years. For example, the year 1999 was not a leap year, but the year 2000 was. A common year has 365 days and a leap year has 366 days.
A leap day is a day that occurs only in a leap year. In the Julian calendar, the 29th day of February is the only leap day.
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Year is outside the range supported by the calendar. -or- Month is outside the range supported by the calendar. -or- Day is outside the range supported by the calendar. -or- Era is outside the range supported by the calendar. |