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