Ruby/Справочник/Time: различия между версиями

Содержимое удалено Содержимое добавлено
м оформление
м <source> -> <syntaxhighlight> (phab:T237267)
Строка 22:
===Time::_load===
----
<sourcesyntaxhighlight lang="ruby">Time._load(string) #=> time</sourcesyntaxhighlight>
----
Unmarshal a dumped <code>Time</code> object.
Строка 28:
===Time::apply_offset===
----
<sourcesyntaxhighlight lang="ruby">Time::apply_offset(year, mon, day, hour, min, sec, off)</sourcesyntaxhighlight>
----
(нет описания...)
===Time::at===
----
<sourcesyntaxhighlight lang="ruby">Time.at( aTime ) #=> time
Time.at( seconds [, microseconds] ) #=> time</sourcesyntaxhighlight>
----
Creates a new time object with the value given by <i>aTime</i>, or the given number of <i>seconds</i> (and optional <i>microseconds</i>) from epoch. A non-portable feature allows the offset to be negative on some systems.
<sourcesyntaxhighlight lang="ruby">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</sourcesyntaxhighlight>
===Time::gm===
----