D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
Time
/
Filename :
now-c.yaml
back
Copy
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !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::now is_singleton: true name: now params: | Time.new -> time visibility: public