public interface TimeScale extends Serializable
This is the interface representing all time scales. Time scales are related
to each other by some offsets that may be discontinuous (for example
the UTC scale
with respect to the TAI scale
).
AbsoluteDate
Modifier and Type | Method and Description |
---|---|
default double |
getLeap(AbsoluteDate date)
Get the value of the previous leap.
|
default <T extends org.hipparchus.RealFieldElement<T>> |
getLeap(FieldAbsoluteDate<T> date)
Get the value of the previous leap.
|
String |
getName()
Get the name time scale.
|
default boolean |
insideLeap(AbsoluteDate date)
Check if date is within a leap second introduction in this time scale.
|
default <T extends org.hipparchus.RealFieldElement<T>> |
insideLeap(FieldAbsoluteDate<T> date)
Check if date is within a leap second introduction in this time scale.
|
default int |
minuteDuration(AbsoluteDate date)
Check length of the current minute in this time scale.
|
default <T extends org.hipparchus.RealFieldElement<T>> |
minuteDuration(FieldAbsoluteDate<T> date)
Check length of the current minute in this time scale.
|
double |
offsetFromTAI(AbsoluteDate date)
Get the offset to convert locations from
TAIScale to instance. |
<T extends org.hipparchus.RealFieldElement<T>> |
offsetFromTAI(FieldAbsoluteDate<T> date)
Get the offset to convert locations from
TAIScale to instance. |
default double |
offsetToTAI(DateComponents date,
TimeComponents time)
Get the offset to convert locations from instance to
TAIScale . |
double offsetFromTAI(AbsoluteDate date)
TAIScale
to instance.date
- conversion dateTAIScale
time scale to get a location in instance time scaleoffsetToTAI(DateComponents, TimeComponents)
<T extends org.hipparchus.RealFieldElement<T>> T offsetFromTAI(FieldAbsoluteDate<T> date)
TAIScale
to instance.T
- type of the filed elementsdate
- conversion dateTAIScale
time scale to get a location in instance time scaleoffsetToTAI(DateComponents, TimeComponents)
default double offsetToTAI(DateComponents date, TimeComponents time)
TAIScale
.date
- date location in the time scaletime
- time location in the time scaleTAIScale
time scaleoffsetFromTAI(AbsoluteDate)
default boolean insideLeap(AbsoluteDate date)
This method will return false for all time scales that do not
implement leap seconds, even if the date corresponds to a leap second
in UTC scale
.
date
- date to checkdefault <T extends org.hipparchus.RealFieldElement<T>> boolean insideLeap(FieldAbsoluteDate<T> date)
This method will return false for all time scales that do not
implement leap seconds, even if the date corresponds to a leap second
in UTC scale
.
T
- type of the filed elementsdate
- date to checkdefault int minuteDuration(AbsoluteDate date)
This method will return 60 for all time scales that do not
implement leap seconds, even if the date corresponds to a leap second
in UTC scale
, and 61 for time scales that do implement
leap second when the current date is within the last minute before the
leap, or during the leap itself.
date
- date to checkdefault <T extends org.hipparchus.RealFieldElement<T>> int minuteDuration(FieldAbsoluteDate<T> date)
This method will return 60 for all time scales that do not
implement leap seconds, even if the date corresponds to a leap second
in UTC scale
, and 61 for time scales that do implement
leap second when the current date is within the last minute before the
leap, or during the leap itself.
T
- type of the filed elementsdate
- date to checkdefault double getLeap(AbsoluteDate date)
This method will return 0.0 for all time scales that do not implement leap seconds.
date
- date to checkdefault <T extends org.hipparchus.RealFieldElement<T>> T getLeap(FieldAbsoluteDate<T> date)
This method will return 0.0 for all time scales that do not implement leap seconds.
T
- type of the filed elementsdate
- date to checkString getName()
Copyright © 2002-2017 CS Systèmes d'information. All rights reserved.