method

to_f

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

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