Package uk.ac.starlink.tfcat
Class TimeCoords
java.lang.Object
uk.ac.starlink.tfcat.TimeCoords
Represents a TFCat TimeCoords object.
- Since:
- 9 Feb 2022
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TimeCoords
Predefined TimeCoords instance for CDF Epoch TT2000.static final TimeCoords
Predefined TimeCoords instance for Julian Day.static final TimeCoords
Predefined TimeCoords instance for Modified Julian Day.static final TimeCoords
Predefined TimeCoords instance for CNES Modified Julian Day.static final TimeCoords
Predefined TimeCoords instance for NASA Modified Julian Day.static final Map
<String, TimeCoords> Map of predefined time_coords_id strings to TimeCoord instances.static final Pattern
Regex for legal TFCat/DALI ISO-8601 time representations.static final Collection
<String> Collection of permitted time scale values.static final TimeCoords
Predefined TimeCoords instance for Unix timestamp. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TIME_SCALES
Collection of permitted time scale values. -
TIME_ORIGIN_REGEX
Regex for legal TFCat/DALI ISO-8601 time representations. -
UNIX
Predefined TimeCoords instance for Unix timestamp. -
JD
Predefined TimeCoords instance for Julian Day. -
MJD
Predefined TimeCoords instance for Modified Julian Day. -
MJD_NASA
Predefined TimeCoords instance for NASA Modified Julian Day. -
MJD_CNES
Predefined TimeCoords instance for CNES Modified Julian Day. -
CDF_TT2000
Predefined TimeCoords instance for CDF Epoch TT2000. -
PREDEF_MAP
Map of predefined time_coords_id strings to TimeCoord instances.
-
-
Constructor Details
-
TimeCoords
public TimeCoords()
-
-
Method Details
-
getName
Returns this system's name.- Returns:
- value of name member
-
getUnit
Returns this system's units.- Returns:
- value of unit member
-
getTimeOrigin
Returns this system's time origin. Should be, but is not guaranteed to be, conformant toTIME_ORIGIN_REGEX
- Returns:
- value of time_origin member
-
getTimeScale
Returns the identifier for this system's time scale. Should be, but is not guaranteed to be, one of the entries fromTIME_SCALES
.- Returns:
- value of time_scale member
-