method

to_i

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

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