method

to_f

v4.2.7 - Show latest stable - Class: DateTime
to_f()
public

Converts self to a floating-point number of seconds, including fractional microseconds, since the Unix epoch.