Current Path : /usr/local/share/ri/1.8/system/Time/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/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