util.Date.isLeapYear

Checks is the year passed as parameter is a leap year.

Syntax

util.Date.isLeapYear( year )
  RETURNING res BOOLEAN
  1. year is an INTEGER representing a year.
  2. res is TRUE if year is a leap year, otherwise res is FALSE.

Usage

The util.Date.isLeapYear() method returns TRUE if the year passed in parameter is a leap year.

Example

IMPORT util
MAIN
    DISPLAY util.Date.isLeapYear( 2003 )
    DISPLAY util.Date.isLeapYear( 2004 )
END MAIN