CorDateTimeStatic: IsLeapYear

IsLeapYear

Returns a boolean indicating if the specific Gregorian year is a leap year.



 Public Function IsLeapYear(
	  ByVal Year As Long ) As Boolean

Parameters

Year
[ByVal] Long. The year to test for leap year.

Return Values

Boolean -  Indication of leap year.

Remarks

Only the Gregorian calendar is supported through the CorDateTime functions. To determine leap years for other calendar types, an instance of the specific calendar will need to be used.

If the year is evenly divisible by 4 or 400 and not by 100 then it is a leap year.

See Also

Project CorLib Overview

Class CorDateTimeStatic Overview