Sporkinator icon

isLeapYear()

Sporkinator | PRO | 04/20/12 09:51:02 PM UTC | 0 ⭐ | 176 👁️ | Never ⏰ | []
Game Maker |

0 B

|

None

|

0 👍

/

0 👎

/*
    This script returns whether or not the given year is a Leap Year.
    Leap Years are every 4 years, except for centurial years not evenly
    divisible by 400.
*/
 
var year;
year = argument0;
return ((year mod 4 == 0 && year mod 100 != 0) || (year mod 400 == 0));

Comments