TT2000 converter that takes leap seconds into account from us2000.
calculate the number of leap seconds in the tt2000 time. For example,
print getLeapSecondCountForTT2000( Units.cdfTT2000.parse('1972-01-01T00:00Z').doubleValue(Units.cdfTT2000) ) # results in 10
print getLeapSecondCountForTT2000( 0 ) # results in 32
print getLeapSecondCountForTT2000( Units.cdfTT2000.parse('2017-01-01T00:00Z').doubleValue(Units.cdfTT2000) ) # results in 37
This is intended to replicate the table https://cdf.gsfc.nasa.gov/html/CDFLeapSeconds.txt
calculate the number of leap seconds in the us2000 time. For example,
print getLeapSecondCountForUs2000( Units.us2000.parse('1972-01-01T00:00Z').doubleValue(Units.us2000) ) # results in 10
print getLeapSecondCountForUs2000( Units.us2000.parse('2017-01-01T00:00Z').doubleValue(Units.us2000) ) # results in 37
This is intended to replicate the table https://cdf.gsfc.nasa.gov/html/CDFLeapSeconds.txt