gps_time_to_utc¶
- pyhelpers.ops.gps_time_to_utc(gps_time)[source]¶
Convert GPS time to UTC time.
- Parameters:
gps_time (float) – Standard GPS time in seconds since GPS epoch (6 January 1980).
- Returns:
Corresponding UTC time.
- Return type:
datetime.datetime
Examples:
>>> from pyhelpers.ops import gps_time_to_utc >>> utc_dt = gps_time_to_utc(gps_time=1271398985.7822514) >>> utc_dt datetime.datetime(2020, 4, 20, 6, 23, 5, 782251)