year | A year value in the INTEGER2 format. |
Return: | IsLeapYear returns a BOOLEAN value. |
The IsLeapYear function returns TRUE if the year is a leap year in the Gregorian (or proleptic Gregorian) calendar.
Example:
IMPORT STD; INTEGER2 MyYear := 2012; //2012 D := STD.Date.IsLeapYear(MyYear); //D contains TRUE, 2012 is a leap year