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 |
|---|---|
double |
getLeap(AbsoluteDate date)
Get the value of the previous leap.
|
String |
getName()
Get the name time scale.
|
boolean |
insideLeap(AbsoluteDate date)
Check if date is within a leap second introduction in this time scale.
|
double |
offsetFromTAI(AbsoluteDate date)
Get the offset to convert locations from
TAIScale to instance. |
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)double offsetToTAI(DateComponents date, TimeComponents time)
TAIScale.date - date location in the time scaletime - time location in the time scaleTAIScale time scaleoffsetFromTAI(AbsoluteDate)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 checkdouble getLeap(AbsoluteDate date)
This method will return 0.0 for all time scales that do not implement leap seconds.
date - date to checkString getName()
Copyright © 2002-2017 CS Systèmes d'information. All rights reserved.