struct

PG::Interval

Inherits Struct < Value < Object

A representation for INTERVAL data type. https://www.postgresql.org/docs/current/datatype-datetime.html

Instance methods

to_duration
Source