end_of_hour

end_of_hour() Instance Public methods Returns a new DateTime representing the end of the hour (hh:59:59). at_end_of_hour

end_of_day

end_of_day() Instance Public methods Returns a new DateTime representing the end of the day (23:59:59). at_end_of_day

default_inspect

default_inspect() Instance Public methods Alias for: inspect

change

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

beginning_of_minute

beginning_of_minute() Instance Public methods Returns a new DateTime representing the start of the minute (hh:mm:00). at_beginning_of_minute

beginning_of_hour

beginning_of_hour() Instance Public methods Returns a new DateTime representing the start of the hour (hh:00:00). at_beginning_of_hour

beginning_of_day

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

at_noon

at_noon() Instance Public methods Alias for: middle_of_day

at_midnight

at_midnight() Instance Public methods Alias for: beginning_of_day

at_middle_of_day

at_middle_of_day() Instance Public methods Alias for: middle_of_day