method

to_i

v1_9_1_378 - Show latest stable - Class: Time
to_i()
public

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

t = Time.now
"%10.5f" % t.to_f   #=> "1049896564.17839"
t.to_i              #=> 1049896564