Package org.yamcs.utils
Class TaiUtcConverter
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
Modifier and TypeClassDescriptionstatic class
static final class
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TaiUtcConverter
- Throws:
IOException
ParseException
-
TaiUtcConverter
- Throws:
IOException
ParseException
-
-
Method Details
-
isLeap
public static boolean isLeap(int year)
-