Static UTC_ TO_ TAI_ LEAP_ SECONDS
Source pub static UTC_TO_TAI_LEAP_SECONDS: LazyLock<u64>Expand description
Number of current leap seconds applicable to UTC compared to TAI
This is the variable part of the offset between:
- TAI (also PTP time)
- and UTC (also NTP time, UNIX time).
Note that this doesn’t account for the constant difference in epochs.
See: UNIX_TO_NTP_TIME_OFFSET_SECONDS, UNIX_TO_PTP_TIME_OFFSET_SECONDS &
NTP_TO_PTP_TIME_OFFSET_SECONDS.
Defaults to UTC_TO_TAI_LEAP_SECONDS_DEFAULT if the environment variable
named by UTC_TO_TAI_LEAP_SECONDS_ENV_VAR is not defined or invalid.