def _time_to_gps(time):
time = time.utc<EOL>date = time.datetime<EOL>micro = date.microsecond if isinstance(date, datetime.datetime) else <NUM_LIT:0><EOL>return LIGOTimeGPS(int(time.gps), int(micro*<NUM_LIT>))<EOL>
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