instance method
to_i
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
to_i()
Converts self to an integer number of seconds since the Unix epoch
Source
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 94
def to_i
seconds_since_unix_epoch.to_i
end
Defined in activesupport/lib/active_support/core_ext/date_time/conversions.rb line 94
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::CoreExtensions::DateTime::Conversions