#include <math.h>
#include "gpstime.h"
Go to the source code of this file.
Function Documentation
Convert a `gps_time_t` GPS time to a Unix `time_t`.
- Note:
- Adjusts for leap seconds using the current constant offset.
- Parameters:
-
- Returns:
- Unix time.
Definition at line 45 of file gpstime.c.
Time difference in seconds between two GPS times.
- Parameters:
-
end | Higher bound of the time interval whose length is calculated. |
beginning | Lower bound of the time interval whose length is calculated. If this describes a time point later than end, the result is negative. |
- Returns:
- The time difference in seconds between `beginning` and `end`.
Definition at line 62 of file gpstime.c.
Normalize a `gps_time_t` GPS time struct. Ensures that the time of week is greater than zero and less than one week by wrapping and adjusting the week number accordingly.
- Parameters:
-
- Returns:
- Normalized GPS time struct.
Definition at line 24 of file gpstime.c.