method

days_in_month

Importance_1
v1.1.6 - Show latest stable - 0 notes - Class: ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods
days_in_month(month, year=nil) public

Return the number of days in the given month. If a year is given, February will return the correct number of days for leap years. Otherwise, this method will always report February as having 28 days.

Show source
Register or log in to add new notes.