D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Time
/
Filename :
localtime-i.ri
back
Copy
U:RDoc::AnyMethod[iI"localtime:ETI"Time#localtime;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"With no argument given:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I".Returns +self+ if +self+ is a local time.;To;;0; [o; ; [I"AOtherwise returns a new +Time+ in the user's local timezone:;T@o:RDoc::Markup::Verbatim; [I"Ft = Time.utc(2000, 1, 1, 20, 15, 1) # => 2000-01-01 20:15:01 UTC ;TI"Ht.localtime # => 2000-01-01 14:15:01 -0600 ;T:@format0o; ; [I"!With argument +zone+ given, ;TI"9returns the new +Time+ object created by converting ;TI"#+self+ to the given time zone:;T@o;; [I"Ft = Time.utc(2000, 1, 1, 20, 15, 1) # => 2000-01-01 20:15:01 UTC ;TI"Ht.localtime("-09:00") # => 2000-01-01 11:15:01 -0900 ;T;0o; ; [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"?localtime -> self or new_time localtime(zone) -> new_time ;T0[ I"(*args);T@,FI" Time;TcRDoc::NormalClass00