File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/ri/ActiveSupport/TimeWithZone/change-i.ri
U:RDoc::AnyMethod[iI"change:ETI"'ActiveSupport::TimeWithZone#change;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"XReturns a new +ActiveSupport::TimeWithZone+ where one or more of the elements have ;TI"Zbeen changed according to the +options+ parameter. The time options (<tt>:hour</tt>, ;TI"V<tt>:min</tt>, <tt>:sec</tt>, <tt>:usec</tt>, <tt>:nsec</tt>) reset cascadingly, ;TI"Xso if only the hour is passed, then minute, sec, usec and nsec is set to 0. If the ;TI"Shour and minute is passed, then sec, usec and nsec is set to 0. The +options+ ;TI"Uparameter takes a hash with any of these keys: <tt>:year</tt>, <tt>:month</tt>, ;TI"R<tt>:day</tt>, <tt>:hour</tt>, <tt>:min</tt>, <tt>:sec</tt>, <tt>:usec</tt>, ;TI"R<tt>:nsec</tt>, <tt>:offset</tt>, <tt>:zone</tt>. Pass either <tt>:usec</tt> ;TI"Kor <tt>:nsec</tt>, not both. Similarly, pass either <tt>:zone</tt> or ;TI" <tt>:offset</tt>, not both.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Tt = Time.zone.now # => Fri, 14 Apr 2017 11:45:15.116992711 EST -05:00
;TI"Tt.change(year: 2020) # => Tue, 14 Apr 2020 11:45:15.116992711 EST -05:00
;TI"Tt.change(hour: 12) # => Fri, 14 Apr 2017 12:00:00.116992711 EST -05:00
;TI"Tt.change(min: 30) # => Fri, 14 Apr 2017 11:30:00.116992711 EST -05:00
;TI"Tt.change(offset: "-10:00") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00
;TI"St.change(zone: "Hawaii") # => Fri, 14 Apr 2017 11:45:15.116992711 HST -10:00;T:@format0:
@fileI")lib/active_support/time_with_zone.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(options);T@ FI"TimeWithZone;TcRDoc::NormalClass00