method
month_days
v1_9_3_392 -
Show latest stable
- Class:
Time
month_days(y, m)private
No documentation available.
# File lib/time.rb, line 117
def month_days(y, m)
if ((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)
LeapYearMonthDays[m-1]
else
CommonYearMonthDays[m-1]
end
end