def relative_time(time, in_ms = false, ref = Time.now)
      ref = in_ms ? ref.to_datetime.strftime('%Q') : ref.to_time
      ref.to_i + parse_relative_time(time, in_ms)
    end
def relative_time(time, in_ms = false, ref = Time.now)
      ref = in_ms ? ref.to_datetime.strftime('%Q') : ref.to_time
      ref.to_i + parse_relative_time(time, in_ms)
    end
Return a timestamp described by the given string. That is,
 '+5m' is five minutes in the future, and '-.1h' is half an
 hour ago.

 @param time [String] relative time string. Must begin with + or
   -, followed by a number, finished with a lower-case time
   unit identifier. See #time_multiplier
 @param in_ms [Boolean] whether to return epoch milliseconds.
   Passing in an integer timestamp returns itself, regardless
   of this value
 @param ref [Time, DateTime] calculate time relative to this
   point. Primarily for easier testing. Defaults to "now".
 @return [Integer] integer timestamp
 @raise [InvalidRelativeTime] if t does not meet requirements