pyacs.lib.gpstime.GpsSecondsFromPyUTC

pyacs.lib.gpstime.GpsSecondsFromPyUTC(pyUTC, _leapSecs=14)[source]

Convert Python epoch time to GPS seconds (since GPS epoch).

Parameters:
  • pyUTC (float) – Seconds since Python epoch (e.g. time.time()).

  • _leapSecs (int, optional) – Unused; kept for API compatibility.

Returns:

GPS seconds since 1980-01-06 00:00:00.

Return type:

int