to_f()
public
Converts self to a floating-point number of seconds, including
fractional microseconds, since the Unix
epoch.
# File activesupport/lib/active_support/core_ext/date_time/conversions.rb, line 83
def to_f
seconds_since_unix_epoch.to_f + sec_fraction
end