Method: Time#initialize
- Defined in:
- lib/source/ruby.rb
#initialize ⇒ Time
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.new #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t2 = Time.new #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t1 == t2 #=> false
t1.to_f #=> 1222222222.989
t2.to_f #=> 1222222222.991
6270 6271 6272 |
# File 'lib/source/ruby.rb', line 6270 def initialize `this._value=new(Date)` end |