File: //usr/local/rvm/gems/ruby-3.0.2/doc/activesupport-6.1.4.1/ri/DateAndTime/Zones/in_time_zone-i.ri
U:RDoc::AnyMethod[iI"in_time_zone:ETI"$DateAndTime::Zones#in_time_zone;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"OReturns the simultaneous time in <tt>Time.zone</tt> if a zone is given or ;TI"Iif Time.zone_default is set. Otherwise, it returns the current time.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"/Time.zone = 'Hawaii' # => 'Hawaii'
;TI"KTime.utc(2000).in_time_zone # => Fri, 31 Dec 1999 14:00:00 HST -10:00
;TI"KDate.new(2000).in_time_zone # => Sat, 01 Jan 2000 00:00:00 HST -10:00
;T:@format0o;
; [I"hThis method is similar to Time#localtime, except that it uses <tt>Time.zone</tt> as the local zone ;TI"1instead of the operating system's time zone.;T@o;
; [I"cYou can also pass in a TimeZone instance or string that identifies a TimeZone as an argument, ;TI"Qand the conversion will be based on that zone instead of <tt>Time.zone</tt>.;T@o;; [I"VTime.utc(2000).in_time_zone('Alaska') # => Fri, 31 Dec 1999 15:00:00 AKST -09:00
;TI"UDate.new(2000).in_time_zone('Alaska') # => Sat, 01 Jan 2000 00:00:00 AKST -09:00;T;
0:
@fileI"7lib/active_support/core_ext/date_and_time/zones.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(zone = ::Time.zone);T@!FI"
Zones;TcRDoc::NormalModule00