class ActiveSupport::TimeWithZone

def to_r

Time.zone.now.to_r # => (708854548642709/500000)

since the Epoch (January 1, 1970 00:00 UTC).
Returns the object's date and time as a rational number of seconds
def to_r
  utc.to_r
end