@time = localtime; $leapyear = 1; $leapyear = 0 if (($time[5]+1900) % 4); [download]
In reply to Checking for leap year by joshua