code: def xlim_as_gps(func):
      
      @wraps(func)
      def wrapped_func(self, left=None, right=None, **kw):
          if right is None and numpy.iterable(left):
              left, right = left
          kw['left'] = left
          kw['right'] = right
          gpsscale = self.get_xscale() in GPS_SCALES
          for key in ('left', 'right'):
              if gpsscale:
                  try:
                      kw[key] = numpy.longdouble(str(to_gps(kw[key])))
                  except TypeError:
                      pass
          return func(self, **kw)
      return wrapped_func
docs: Wrap ``func`` to handle pass limit inputs through `gwpy.time.to_gps`