Method: Time#to_f

Defined in:
lib/source/ruby.rb

#to_fObject

call-seq:

time.to_f -> numeric

Returns the value of time as a floating point number of seconds since epoch.

t = Time.now    #=> Tue Sep 23 2008 22:10:22 GMT-0400 (EDT)
t.to_f          #=> 1222222222.989


6542
6543
6544
# File 'lib/source/ruby.rb', line 6542

def to_f
  `this._value.valueOf()/1000`
end