ActionScript 3 Working with Date and Time Whether the specified year is leap year


Example

function isLeapYear(year:int):Boolean {
    return daysInMonth(year, 1) == 29;
}