Repetition !  Two branches through this code return the same way.  I'd sooner <code>
return (month == 1 && year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)) ? 29 : DAYS[month];
</code>