IfcLeapYear

Definition from ISO/CD 10303-41:1992: Determines whether a given year is a leap year or not according to the Gregorian Calendar algorithm. It returns TRUE if the year is a leap year, otherwise it returns FALSE.

> NOTE Corresponding STEP name: leap_year, please refer to ISO/IS 10303-41:1994 for the final definition of the formal standard.

> HISTORY New function in IFC Release 1.5.1.

EXPRESS specification:

FUNCTION IfcLeapYear
(Year : IfcYearNumber) :BOOLEAN; IF ((((Year MOD 4) = 0) AND ((Year MOD 100) <> 0)) OR ((Year MOD 400) = 0)) THEN RETURN(TRUE); ELSE RETURN(FALSE); END_IF;
END_FUNCTION;