/**
* @param year Full year as int (ex:2000).
* @param monthMonth as int, zero-based (ex:0=January, 11=December).
*/
function daysInMonth(year:int, month:int):int {
return (new Date(year, ++month, 0)).date;
}
Whether the specified year is leap year
function isLeapYear(year:int):Boolean {
return daysInMonth(year, 1) == 29;
}
Whether daylight savings time is currently observed