code: def tconvert(gpsordate='now'):
      
      # convert from GPS into datetime
      try:
          float(gpsordate)  # if we can 'float' it, then its probably a GPS time
      except (TypeError, ValueError):
          return to_gps(gpsordate)
      return from_gps(gpsordate)
docs: Convert GPS times to ISO-format date-times and vice-versa.
  
      Parameters
      ----------
      gpsordate : `float`, `astropy.time.Time`, `datetime.datetime`, ...
          input gps or date to convert, many input types are supported
  
      Returns
      -------
      date : `datetime.datetime` or `LIGOTimeGPS`
          converted gps or date
  
      Notes
      -----
      If the input object is a `float` or `LIGOTimeGPS`, it will get
      converted from GPS format into a `datetime.datetime`, otherwise
      the input will be converted into `LIGOTimeGPS`.
  
      Examples
      --------
      Integers and floats are automatically converted from GPS to
      `datetime.datetime`:
  
      >>> from gwpy.time import tconvert
      >>> tconvert(0)
      datetime.datetime(1980, 1, 6, 0, 0)
      >>> tconvert(1126259462.3910)
      datetime.datetime(2015, 9, 14, 9, 50, 45, 391000)
  
      while strings are automatically converted to `~gwpy.time.LIGOTimeGPS`:
  
      >>> to_gps('Sep 14 2015 09:50:45.391')
      LIGOTimeGPS(1126259462, 391000000)
  
      Additionally, a few special-case words as supported, which all return
      `~gwpy.time.LIGOTimeGPS`:
  
      >>> tconvert('now')
      >>> tconvert('today')
      >>> tconvert('tomorrow')
      >>> tconvert('yesterday')