org.orekit.time
Interface TimeScale

All Known Implementing Classes:
GalileoScale, GMSTScale, GPSScale, TAIScale, TCBScale, TCGScale, TDBScale, TTScale, UT1Scale, UTCScale

public interface TimeScale

Interface for time scales.

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).

Author:
Luc Maisonobe
See Also:
AbsoluteDate

Method Summary
 String getName()
          Get the name 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.
 

Method Detail

offsetFromTAI

double offsetFromTAI(AbsoluteDate date)
Get the offset to convert locations from TAIScale to instance.

Parameters:
date - conversion date
Returns:
offset in seconds to add to a location in TAIScale time scale to get a location in instance time scale
See Also:
offsetToTAI(DateComponents, TimeComponents)

offsetToTAI

double offsetToTAI(DateComponents date,
                   TimeComponents time)
Get the offset to convert locations from instance to TAIScale.

Parameters:
date - date location in the time scale
time - time location in the time scale
Returns:
offset in seconds to add to a location in instance time scale to get a location in TAIScale time scale
See Also:
offsetFromTAI(AbsoluteDate)

getName

String getName()
Get the name time scale.

Returns:
name of the time scale


Copyright © 2017 CNES. All Rights Reserved.