Task

Determine whether a given year is a leap year in the Gregorian calendar.



See also

 Leap year (wiki)


FUNCTION IsLeapYear( nYear )
   RETURN iif( nYear % 100 == 0, nYear % 400 == 0, nYear % 4 == 0 )