public class UTCTAIOffset extends Object implements TimeStamped, Serializable
UTC
and TAI
time scales.
The UTC
and TAI
time scales are two
scales offset with respect to each other. The TAI
scale is
continuous whereas the UTC
includes some discontinuity when
leap seconds are introduced by the International
Earth Rotation Service (IERS).
This class represents the offset between the two scales that is valid between two leap seconds occurrences. It handles both the linear offsets used from 1961-01-01 to 1971-12-31 and the constant integer offsets used since 1972-01-01.
UTCScale
,
UTCTAIHistoryFilesLoader
,
Serialized FormModifier and Type | Method and Description |
---|---|
AbsoluteDate |
getDate()
Get the date of the start of the leap.
|
double |
getLeap()
Get the value of the leap at offset validity start (in seconds).
|
int |
getMJD()
Get the date of the start of the leap as Modified Julian Day.
|
double |
getOffset(AbsoluteDate date)
Get the TAI - UTC offset in seconds.
|
double |
getOffset(DateComponents date,
TimeComponents time)
Get the TAI - UTC offset in seconds.
|
<T extends CalculusFieldElement<T>> |
getOffset(FieldAbsoluteDate<T> date)
Get the TAI - UTC offset in seconds.
|
AbsoluteDate |
getValidityStart()
Get the start time of validity for this offset.
|
public AbsoluteDate getDate()
getDate
in interface TimeStamped
getValidityStart()
public int getMJD()
public AbsoluteDate getValidityStart()
The start of the validity of the offset is getLeap()
seconds after the start of the leap itself.
getDate()
public double getLeap()
public double getOffset(AbsoluteDate date)
date
- date at which the offset is requestedpublic <T extends CalculusFieldElement<T>> T getOffset(FieldAbsoluteDate<T> date)
T
- type of the filed elementsdate
- date at which the offset is requestedpublic double getOffset(DateComponents date, TimeComponents time)
date
- date components (in UTC) at which the offset is requestedtime
- time components (in UTC) at which the offset is requestedCopyright © 2002-2021 CS GROUP. All rights reserved.