AlkantarClanX12
Current Path : /opt/alt/ruby18/share/ri/1.8/system/Time/ |
Current File : //opt/alt/ruby18/share/ri/1.8/system/Time/new-c.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Document-method: now" - !ruby/struct:SM::Flow::P body: Synonym for <tt>Time.new</tt>. Returns a <tt>Time</tt> object initialized tot he current system time. - !ruby/struct:SM::Flow::P body: 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. - !ruby/struct:SM::Flow::VERB body: " a = Time.new #=> Wed Apr 09 08:56:03 CDT 2003\n b = Time.new #=> Wed Apr 09 08:56:03 CDT 2003\n a == b #=> false\n "%.6f" % a.to_f #=> "1049896563.230740"\n "%.6f" % b.to_f #=> "1049896563.231466"\n" full_name: Time::new is_singleton: true name: new params: | Time.new -> time visibility: public