beginning_of_day

beginning_of_day() Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00) midnight at_midnight at_beginning_of_day

change

change(options) Instance Public methods Returns a new Date where one or more of the elements have been changed according to the options parameter. The options parameter is a hash with a combination of these keys: :year, :month, :day. Date.new(2007, 5, 12).change(day: 1) # => Date.new(2007, 5, 1) Date.new(2007, 5, 12).change(year: 2005, month: 1) # => Date.new(2005, 1, 12)

compare_with_coercion

compare_with_coercion(other) Instance Public methods Allow Date to be compared with Time by converting to DateTime and relying on the <=> from there. <=>

compare_without_coercion

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

default_inspect

default_inspect() Instance Public methods Alias for: inspect

end_of_day

end_of_day() Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59) at_end_of_day

in

in(seconds) Instance Public methods Alias for: since

inspect

inspect() Instance Public methods Also aliased as: default_inspect

midday

midday() Instance Public methods Alias for: middle_of_day

middle_of_day

middle_of_day() Instance Public methods Converts Date to a Time (or DateTime if necessary) with the time portion set to the middle of the day (12:00) midday noon at_midday at_noon at_middle_of_day