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

Содержимое удалено Содержимое добавлено
→‎Time::new: removed duplicate Returns a <tt>Time</tt> object initialized tot he current system time.
Строка 91:
----
Document-method: now
Synonym for <tt>Time.new</tt>. Returns a <tt>Time</tt> object initialized tot he current system time.
Returns a <tt>Time</tt> object initialized to the current system time. <b>Note:</b> The object created will be created using the resolution available on your system clock, and so may include fractional seconds.
<code>a = Time.new #=&gt; Wed Apr 09 08:56:03 CDT 2003
Строка 98:
"%.6f" % a.to_f #=> "1049896563.230740"
"%.6f" % b.to_f #=> "1049896563.231466"</code>
 
===Time::now===
----