End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Time.month_days
month_days(y, m)
lib/time.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/time.rb, line 139
def month_days(y, m)
if ((y % 4 == 0) && (y % 100 != 0)) || (y % 400 == 0)
LeapYearMonthDays[m-1]
else
CommonYearMonthDays[m-1]
end
end
No documentation available