Returns the object’s date and time as an integer number of seconds since the Epoch (January 1, 1970 00:00 UTC).
Time.zone.now.to_i # => 1417709320
471 472 473
# File 'lib/active_support/time_with_zone.rb', line 471 def to_i utc.to_i end