Ruby/Справочник/Time: различия между версиями
Содержимое удалено Содержимое добавлено
DannyS712 (обсуждение | вклад) м <source> -> <syntaxhighlight> (phab:T237267) |
|||
Строка 455:
===Time#strftime===
----
<tt>
----
Formats <i>time</i> according to the directives in the given format string. Any text not listed as a directive will be passed through to the output string.
Строка 489:
t.strftime("Printed on %m/%d/%Y") #=> "Printed on 04/09/2003"
t.strftime("at %I:%M%p") #=> "at 08:56AM"</code>
===Time#succ===
----
|