Ruby/Справочник/Time: различия между версиями
Содержимое удалено Содержимое добавлено
JenVan (обсуждение | вклад) м Откат правок 86.45.183.237 (обс.) к версии Ashikbot |
|||
Строка 105:
Synonym for <tt>Time.new</tt>.
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.
b = Time.
a == b #=>
"%.6f" % a.to_f #=> "1049896563.230740"
"%.6f" % b.to_f #=> "1049896563.231466"</code>
|