eql_without_coercion

eql_without_coercion(other) Instance Public methods Alias for: eql?

eql_with_coercion

eql_with_coercion(other) Instance Public methods Layers additional behavior on #eql? so that ActiveSupport::TimeWithZone instances can be eql? to an equivalent Time eql?

eql?

eql?(other) Instance Public methods Also aliased as: eql_without_coercion

end_of_minute

end_of_minute() Instance Public methods Returns a new Time representing the end of the minute, x:xx:59.999999 (.999999999 in ruby1.9) at_end_of_minute

end_of_hour

end_of_hour() Instance Public methods Returns a new Time representing the end of the hour, x:59:59.999999 (.999999999 in ruby1.9) at_end_of_hour

end_of_day

end_of_day() Instance Public methods Returns a new Time representing the end of the day, 23:59:59.999999 (.999999999 in ruby1.9) at_end_of_day

compare_without_coercion

compare_without_coercion(other) Instance Public methods Alias for: <=>

compare_with_coercion

compare_with_coercion(other) Instance Public methods Layers additional behavior on Time#<=> so that DateTime and ActiveSupport::TimeWithZone instances can be chronologically compared with a Time <=>

change

change(options) Instance Public methods Returns a new Time where one or more of the elements have been changed according to the options parameter. The time options (:hour, :min, :sec, :usec) reset cascadingly, so if only the hour is passed, then minute, sec, and usec is set to 0. If the hour and minute is passed, then sec and usec is set to 0. The options parameter takes a hash with any of these keys: :year, :month, :day, :hour, :min, :sec, :usec. Time.new(2012, 8, 29, 22, 35, 0).

beginning_of_minute

beginning_of_minute() Instance Public methods Returns a new Time representing the start of the minute (x:xx:00) at_beginning_of_minute