Module ActiveSupport::CoreExtensions::Time::Calculations::ClassMethods
In: lib/active_support/core_ext/time/calculations.rb

Methods

Public Instance methods

Overriding case equality method so that it returns true for ActiveSupport::TimeWithZone instances

Return the number of days in the given month. If no year is specified, it will use the current year.

Wraps class method time_with_datetime_fallback with utc_or_local set to :local.

Returns a new Time if requested year can be accommodated by Ruby‘s Time class (i.e., if year is within either 1970..2038 or 1902..2038, depending on system architecture); otherwise returns a DateTime

Wraps class method time_with_datetime_fallback with utc_or_local set to :utc.

[Validate]