File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/ri/DateTime/change-i.ri
U:RDoc::AnyMethod[iI"change:ETI"DateTime#change;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns a new DateTime where one or more of the elements have been changed ;TI"Maccording to the +options+ parameter. The time options (<tt>:hour</tt>, ;TI"M<tt>:min</tt>, <tt>:sec</tt>) reset cascadingly, so if only the hour is ;TI"Ppassed, then minute and sec is set to 0. If the hour and minute is passed, ;TI"Rthen sec is set to 0. The +options+ parameter takes a hash with any of these ;TI"Kkeys: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>, <tt>:hour</tt>, ;TI"E<tt>:min</tt>, <tt>:sec</tt>, <tt>:offset</tt>, <tt>:start</tt>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"oDateTime.new(2012, 8, 29, 22, 35, 0).change(day: 1) # => DateTime.new(2012, 8, 1, 22, 35, 0)
;TI"oDateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => DateTime.new(1981, 8, 1, 22, 35, 0)
;TI"mDateTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => DateTime.new(1981, 8, 29, 0, 0, 0);T:@format0:
@fileI":lib/active_support/core_ext/date_time/calculations.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(options);T@FI"
DateTime;TcRDoc::NormalClass00