Navigation: Function Reference > General Utility Functions > isLeapYear()

isLeapYear()

Top  Previous  Next

isLeapYear( year: Word ) : Boolean;

 

Returns true if the year passed is a leap year.

 

Parameters

 

year

numeric value

 

var isLeap: boolean;

 

isLeap := isLeapYear( 2000 );

 

//isLeap is now equal to true;