STD.Date.IsDateLeapYear( date )
date | A date in Date_t format. (An UNSIGNED4 containing a date value in YYYYMMDD format.) |
Return: | IsDateLeapYear returns a BOOLEAN value. |
The IsDateLeapYear function returns TRUE if the year represented in the date is a leap year in the Gregorian (or proleptic Gregorian) calendar.
Example:
IMPORT STD; MyDate := 20120112; //Jan. 12, 2012 D := STD.Date.IsDateLeapYear(MyDate); //D contains TRUE, 2012 is a leap year