JulianCalendar: IsLeapDay

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

Parameters

Year
[ByVal] Long. The year the day is in.
Month
[ByVal] Long. The month the day is in.
Day
[ByVal] Long. The day to check if is a leap day.
Era
[ByRef] Optional. Variant. The era the year is in.

Return Values

Boolean -  Boolean indication if the day is a leap day.

Remarks

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.

Exceptions

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.

See Also

Project CorLib Overview

Class JulianCalendar Overview