Method: Time.now
- Defined in:
- lib/source/ruby.rb
.now ⇒ Object
call-seq:
Time.new -> time
Time.now -> time
Returns a Time object initialized to the current system time. The object created will include fractional seconds to the thousandths place.
t1 = Time.now #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t2 = Time.now #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t1 == t2 #=> false
t1.to_f #=> 1222222222.989
t2.to_f #=> 1222222222.991
6253 6254 6255 |
# File 'lib/source/ruby.rb', line 6253 def self.now Time.new end |