HijriCalendar: 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

In every 30-year cycle that ends with a year that is evenly divisible by 30, the 2nd, 5th, 7th, 10th, 13th, 16th, 18th, 21st, 24th, 26th, and 29th years are leap years. A common year has 354 days and a leap year has 355 days.

A leap day is a day that occurs only in a leap year. In the Hijri calendar, the 30th day of Zulhijjah 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 HijriCalendar Overview