File: //usr/share/ri/3.0.0/system/Time/at-c.ri
U:RDoc::AnyMethod[iI"at:ETI"
Time::at;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [
I"?Creates a new Time object with the value given by +time+, ;TI"1the given number of +seconds_with_frac+, or ;TI"=+seconds+ and +microseconds_with_frac+ since the Epoch. ;TI"6+seconds_with_frac+ and +microseconds_with_frac+ ;TI":can be an Integer, Float, Rational, or other Numeric.;To:RDoc::Markup::BlankLine o;
; [ I"QIf +in+ argument is given, the result is in that timezone or UTC offset, or ;TI"Bif a numeric argument is given, the result is in local time. ;TI"OThe +in+ argument accepts the same types of arguments as +tz+ argument of ;TI"?Time.new: string, number of seconds, or a timezone object.;T@o:RDoc::Markup::Verbatim; [I"MTime.at(0) #=> 1969-12-31 18:00:00 -0600
;TI"MTime.at(Time.at(0)) #=> 1969-12-31 18:00:00 -0600
;TI"MTime.at(946702800) #=> 1999-12-31 23:00:00 -0600
;TI"MTime.at(-284061600) #=> 1960-12-31 00:00:00 -0600
;TI":Time.at(946684800.2).usec #=> 200000
;TI"=Time.at(946684800, 123456.789).nsec #=> 123456789
;TI"=Time.at(946684800, 123456789, :nsec).nsec #=> 123456789
;TI"
;TI"MTime.at(1582721899, in: "+09:00") #=> 2020-02-26 21:58:19 +0900
;TI"KTime.at(1582721899, in: "UTC") #=> 2020-02-26 12:58:19 UTC
;TI"MTime.at(1582721899, in: "C") #=> 2020-02-26 13:58:19 +0300
;TI"MTime.at(1582721899, in: 32400) #=> 2020-02-26 21:58:19 +0900
;TI"
;TI"require 'tzinfo'
;TI"BTime.at(1582721899, in: TZInfo::Timezone.get('Europe/Kiev'))
;TI"L #=> 2020-02-26 14:58:19 +0200;T:@format0:
@fileI"time.c;T:0@omit_headings_from_table_of_contents_below0I"Time.at(time) -> time
Time.at(seconds_with_frac) -> time
Time.at(seconds, microseconds_with_frac) -> time
Time.at(seconds, milliseconds, :millisecond) -> time
Time.at(seconds, microseconds, :usec) -> time
Time.at(seconds, microseconds, :microsecond) -> time
Time.at(seconds, nanoseconds, :nsec) -> time
Time.at(seconds, nanoseconds, :nanosecond) -> time
Time.at(time, in: tz) -> time
Time.at(seconds_with_frac, in: tz) -> time
Time.at(seconds, microseconds_with_frac, in: tz) -> time
Time.at(seconds, milliseconds, :millisecond, in: tz) -> time
Time.at(seconds, microseconds, :usec, in: tz) -> time
Time.at(seconds, microseconds, :microsecond, in: tz) -> time
Time.at(seconds, nanoseconds, :nsec, in: tz) -> time
Time.at(seconds, nanoseconds, :nanosecond, in: tz) -> time
;T0[ I"$(p1, p2 = v2, p3 = v3, p4 = {});T@+FI" Time;TcRDoc::NormalClass00