beginning_of_day

beginning_of_day() Instance Public methods Returns a new Time representing the start of the day (0:00) midnight at_midnight at_beginning_of_day

beginning_of_hour

beginning_of_hour() Instance Public methods Returns a new Time representing the start of the hour (x:00) at_beginning_of_hour

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

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).

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 <=>

compare_without_coercion

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

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

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_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

eql?

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