def time_to_ms(time)
      return false unless time.is_a?(Integer)
      return time if time.to_s.size == 13
      (time.to_f * 1000).round
    end
def time_to_ms(time)
      return false unless time.is_a?(Integer)
      return time if time.to_s.size == 13
      (time.to_f * 1000).round
    end
Convert an epoch timestamp into epoch milliseconds. If the
 timestamp looks like it's already epoch milliseconds, return
 it as-is.

 @param t [Integer] epoch timestamp
 @return [Ingeter] epoch millisecond timestamp