IsLeapYear()
Determines whether a year is a leap year.
IsLeapYear( year=number );
Returns: Boolean
Examples
writeDump(label:"2018", var:IsLeapYear(2018));
writeDump(label:"2020", var:IsLeapYear(2020));
writeDump(label:"1", var:IsLeapYear(1));
See also
- Decision logic
- Date and time
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)