/**
* @param year Full year as int (ex: 2000).
* @param month Month as int, zero-based (ex: 0=January, 11=December).
*/
function daysInMonth(year:int, month:int):int {
return (new Date(year, ++month, 0)).date;
}
function isDaylightSavings(d:Date):Boolean {
var months:uint = 12;
var offset:uint = d.timezoneOffset;
var offsetCheck:Number;
while (months--) {
offsetCheck = (new Date(d.getFullYear(), months, 1)).timezoneOffset;
if (offsetCheck != offset)
ret...