File: //usr/local/rvm/gems/ruby-2.7.4/doc/activesupport-6.1.4.1/ri/Time/change-i.ri
U:RDoc::AnyMethod[iI"change:ETI"Time#change;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"VReturns a new Time where one or more of the elements have been changed according ;TI"Rto the +options+ parameter. The time options (<tt>:hour</tt>, <tt>:min</tt>, ;TI"R<tt>:sec</tt>, <tt>:usec</tt>, <tt>:nsec</tt>) reset cascadingly, so if only ;TI"Rthe hour is passed, then minute, sec, usec and nsec is set to 0. If the hour ;TI"Xand minute is passed, then sec, usec and nsec is set to 0. The +options+ parameter ;TI"Ztakes a hash with any of these keys: <tt>:year</tt>, <tt>:month</tt>, <tt>:day</tt>, ;TI"S<tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>, <tt>:usec</tt>, <tt>:nsec</tt>, ;TI"N<tt>:offset</tt>. Pass either <tt>:usec</tt> or <tt>:nsec</tt>, not both.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"gTime.new(2012, 8, 29, 22, 35, 0).change(day: 1) # => Time.new(2012, 8, 1, 22, 35, 0)
;TI"gTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, day: 1) # => Time.new(1981, 8, 1, 22, 35, 0)
;TI"eTime.new(2012, 8, 29, 22, 35, 0).change(year: 1981, hour: 0) # => Time.new(1981, 8, 29, 0, 0, 0);T:@format0:
@fileI"5lib/active_support/core_ext/time/calculations.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(options);T@FI" Time;TcRDoc::NormalClass00