is_leapyear

Returns true if the given year is a leap year

Arguments

  • year : the year as integer (2013)

Returns : boolean (true or false)

Source code

  1. return (argument0 mod 4 == 0) and ((argument0 mod 100 != 0) or (argument0 mod 400 == 0));