93static const int32_t LEAP_SECONDS[][2] = {
119 for (
size_t i = 0; i <
array_size(LEAP_SECONDS); ++i) {
120 if (unix_seconds >= LEAP_SECONDS[i][0]) {
124 return static_cast<T
>(0);
129 for (
size_t i = 0; i <
array_size(LEAP_SECONDS); ++i) {
131 if (result >= LEAP_SECONDS[i][0]) {
135 return static_cast<T
>(0);
T unix2gps(const T unix_seconds)
const int32_t GPS_AND_SYSTEM_DIFF_SECONDS
T gps2unix(const T gps_seconds)
constexpr size_t array_size(T(&)[N])