code: def GetTimeRange(cls):
      
      first = getattr(cls, '_lower', 0)
      last = getattr(cls, '_upper', cls.MAX_INT64)
  
      if first < last:
        return first, last
  
      return last, first
docs: Return the first and last timestamp of filter range.