http://apidock.com/rails/Time/days_in_month/class