method

to_i

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

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