Implements the UTC (Coordinated Universal Time) time scale, including leap second handling.
This class provides conversion between TAI (International Atomic Time) and UTC, accounting for historical and current leap second definitions. It maintains a list of leap second offsets and computes the appropriate offset for any given time.
Value parameters
leapOffsets
The leap offsets after Jan 1. 2017. Likely to be deprecated after 2035, since the leap seconds will be dropped by then.
tai
The TAI time scale instance used as a reference for conversions.
Converts a date and time in this scale to the equivalent TAI time.
Converts a date and time in this scale to the equivalent TAI time.
This method iteratively converges on the correct offset using the timePastTAI function. It typically requires 3-4 iterations to converge with sufficient accuracy.