instance method
to_i
Ruby on Rails 3.1.12
Since v3.0.20Signature
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 93
def to_i
seconds_since_unix_epoch.to_i
end
Defined in activesupport/lib/active_support/core_ext/date_time/conversions.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in DateTime