method

to_i

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

Converts self to an integer number of seconds since the Unix epoch.