code: def _time_to_gps(time):
      
      time = time.utc
      date = time.datetime
      micro = date.microsecond if isinstance(date, datetime.datetime) else 0
      return LIGOTimeGPS(int(time.gps), int(micro*1e3))
docs: Convert a `Time` into `LIGOTimeGPS`.
  
      This method uses `datetime.datetime` underneath, which restricts
      to microsecond precision by design. This should probably be fixed...
  
      Parameters
      ----------
      time : `~astropy.time.Time`
          formatted `Time` object to convert
  
      Returns
      -------
      gps : `LIGOTimeGPS`
          Nano-second precision `LIGOTimeGPS` time