java.lang.Object
org.yamcs.utils.TaiUtcConverter
Utility class to convert between TAI and UTC. It reads the UTC-TAI.history (available at
http://hpiers.obspm.fr/eoppc/bul/bulc/UTC-TAI.history)
It only supports added leap seconds not removed ones (negative leap seconds have never happened and probably never will).
It only works correctly with the times after 1972 when the difference between TAI and UTC is an integer number of seconds.
Most of the code is copied or inspired from the TAI C library http://cr.yp.to/libtai.html
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TaiUtcConverter
- Throws:
IOExceptionParseException
-
TaiUtcConverter
- Throws:
IOExceptionParseException
-
-
Method Details
-
isLeap
public static boolean isLeap(int year)
-