Method: Time.at
- Defined in:
- time.c
.at(aTime) ⇒ Time .at(seconds[, microseconds]) ⇒ Time
Creates a new time object with the value given by aTime, or the given number of seconds (and optional microseconds) from epoch. A non-portable feature allows the offset to be negative on some systems.
Time.at(0) #=> Wed Dec 31 18:00:00 CST 1969
Time.at(946702800) #=> Fri Dec 31 23:00:00 CST 1999
Time.at(-284061600) #=> Sat Dec 31 00:00:00 CST 1960
254 255 256 |
# File 'time.c', line 254 static VALUE time_s_at(argc, argv, klass) int argc; |