

Instant in the perspective of a specific time scale. Instances of the AbsoluteDate class are guaranteed to be immutable.Īuthor: Luc Maisonobe, Evan Ward See Also: TimeScale,īuild an instance from an apparent clock offset with respect to another PAST_INFINITY and FUTURE_INFINITY, which can be used either as dummyĭates when a date is not yet initialized, or for initialization of loops searching for In addition to these reference epochs, two other constants are defined for convenience: There are also two factory methods createJulianEpoch(double)Īnd createBesselianEpoch(double) that can be used to compute other reference JULIAN_EPOCH, MODIFIED_JULIAN_EPOCH, FIFTIES_EPOCH,ĬCSDS_EPOCH, GALILEO_EPOCH, GPS_EPOCH, QZSS_EPOCH J2000_EPOCH, JAVA_EPOCH. TheseĮpochs can be used as the basis for offset computation. ParseCCSDSDaySegmentedTimeCode(byte, byte, DateComponents),ĭurationFrom(AbsoluteDate), compareTo(AbsoluteDate), equals(Object)Ī few reference epochs which are commonly used in space systems have been defined. ParseCCSDSUnsegmentedTimeCode(byte, byte, byte, AbsoluteDate), The related methods are AbsoluteDate(AbsoluteDate, double), They are counted in seconds,Īre continuous and could be measured using only a virtually perfect stopwatch. (two instances of the class) or durations. Offsets represent either the flow of time between two events Offset view (mainly for physical computation) TimeScale), parseCCSDSCalendarSegmentedTimeCode(byte, byte), The related methods are AbsoluteDate(DateComponents, TimeComponents, TimeScale), AbsoluteDate(int, int, int, int, int, double, TimeScale), AbsoluteDate(int, int, int, TimeScale), AbsoluteDate(Date,

Locations represent the coordinate of one event with respect to a Location view (mainly for input/output or conversions) WriteNextDate(date.getComponents(TimeScalesFactory.getTAI())) This can be done as follows:ĭateTimeComponents utcComponents = readNextDate() ĪbsoluteDate date = new AbsoluteDate(utcComponents, TimeScalesFactory.getUTC()) In UTC and write it in another file in TAI. An example of such use is to read a date from a file It is therefore possible to define a date in one time scaleĪnd to use it in another one. To the location of the date within some time scale require to provide the time Since an instance is not bound to a specific time-scale, all methods related Only oneĪbsoluteDate instance is needed, both representations being availableįrom this single instance by specifying the time scales as parameter when calling Simply different perspective related to a single object. Time scales (say TAI and UTC for example) are Other words the different locations of an event with respect to two different To other instances or located in any time scale. That each one represent the occurrence of some event and can be compared Instances of this class are considered to be absolute in the sense This class represents a specific instant in time.
