Method: Time#to_i

Defined in:
lib/source/ruby.rb

#to_iObject

call-seq:

time.to_i -> integer

Returns the value of time as an integer number of seconds since epoch.

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


6554
6555
6556
# File 'lib/source/ruby.rb', line 6554

def to_i
  `parseInt(this._value.valueOf()/1000)`
end