D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Time
/
Filename :
getlocal-i.ri
back
Copy
U:RDoc::AnyMethod[iI" getlocal:ETI"Time#getlocal;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"BReturns a new +Time+ object representing the value of +self+ ;TI"$converted to a given timezone; ;TI"4if +zone+ is +nil+, the local timezone is used:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"Ht = Time.utc(2000) # => 2000-01-01 00:00:00 UTC ;TI"Jt.getlocal # => 1999-12-31 18:00:00 -0600 ;TI"Jt.getlocal('+12:00') # => 2000-01-01 12:00:00 +1200 ;T:@format0o; ; [I"'For forms of argument +zone+, see ;TI">{Timezone Specifiers}[rdoc-ref:Time@Timezone+Specifiers].;T: @fileI"time.c;T:0@omit_headings_from_table_of_contents_below0I"&getlocal(zone = nil) -> new_time ;T0[ I"(*args);T@FI" Time;TcRDoc::NormalClass00