Ruby/Справочник/Time: различия между версиями
Содержимое удалено Содержимое добавлено
Новая: ==Класс Time== Implements the extensions to the Time class that are described in the documentation for the time.rb library. ---- Extensions to time to allow comparisons with an earl... |
|||
Строка 7:
'''Примеси'''
[[
'''Константы'''
CommonYearMonthDays, LeapYearMonthDays, MonthValue, RFC2822_DAY_NAME, RFC2822_MONTH_NAME, ZoneOffset
'''Методы класса'''
Строка 437 ⟶ 435 :
If <tt>self</tt> is a UTC time, -0000 is used as zone.
(еще известен как rfc822)
===Time#rfc822=== ----
<tt>rfc822()</tt>
Строка 612 ⟶ 611 :
<tt>fractional_seconds</tt> specifies a number of digits of fractional seconds. Its default value is 0.
(еще известен как iso8601)
===Time#yday=== ----
<tt>time.yday => fixnum</tt>
|