class ActiveSupport::TimeWithZone

def to_f

Time.zone.now.to_f # => 1417709320.285418

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