JulianCalendar: IsLeapMonth

IsLeapMonth

Returns a boolean indicating if the specific month is a leap month.



 Public Function IsLeapMonth(
	  ByVal Year As Long,
	  ByVal Month As Long,
	  Optional ByRef Era As Variant ) As Boolean

Parameters

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

Return Values

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

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 month is an entire month that occurs only in a leap year. The Julian calendar does not have any leap months.

Exceptions

Exception Condition
ArgumentOutOfRangeException Year is outside the range supported by the calendar.
-or-
Month 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