method

to_f

v3.2.8 - Show latest stable - Class: DateTime
to_f()
public

Converts self to a floating-point number of seconds since the Unix epoch.