Data Structures | |
| struct | psTime |
| Definition of psTime. More... | |
Enumerations | |
| enum | psTimeType { PS_TIME_TAI, PS_TIME_UTC, PS_TIME_UT1, PS_TIME_TT } |
| Time type. More... | |
| enum | psTimeBulletin { PS_IERS_A, PS_IERS_B } |
| Time Bulletin type. More... | |
Functions | |
| psBool | p_psTimeInit (const char *fileName) |
| Initialize time data. | |
| void | psTimeInitialize (const char *timeConfig) |
| Initialize time data. | |
| psBool | p_psTimeFinalize (void) |
| Free memory persistant time data. | |
| void | psTimeFinalize (void) |
| Frees memory that was allocated by psTime functions. | |
| psTime * | psTimeAlloc (psTimeType type) |
| Allocate time struct. | |
| bool | psMemCheckTime (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psTime * | psTimeGetNow (psTimeType type) |
| Get current time. | |
| psTime * | psTimeConvert (psTime *time, psTimeType type) |
| Convert psTime to UTC, TAI, UT1, or TT time. | |
| double | psTimeToLMST (psTime *time, double longitude) |
| Convert psTime to Local Mean Sidereal Time (LMST). | |
| double | psTimeGetUT1Delta (const psTime *time, psTimeBulletin bulletin) |
| Determine UT1 - UTC from table lookup. | |
| psTime * | psTime_TideUT1Corr (const psTime *time) |
| Provides tidal corrections to UT1-UTC. | |
| psF64 | p_psTimeGetTAIDelta (const psTime *time) |
| Determine TAI - UTC from table lookup. | |
| psSphere * | p_psTimeGetPoleCoords (const psTime *time) |
| Determine polar coordinates at a given time. | |
| long | psTimeLeapSecondDelta (const psTime *time1, const psTime *time2) |
| Calculate the number of leapseconds between two times. | |
| bool | psTimeIsLeapSecond (const psTime *utc) |
| Determine if UTC time is a leapsecond. | |
| double | psTimeToJD (const psTime *time) |
| Convert psTime to Julian date time. | |
| double | psTimeToMJD (const psTime *time) |
| Convert psTime to modified Julian date time. | |
| psString | psTimeToISO (const psTime *time) |
| Convert psTime to ISO8601 formatted string. | |
| tm * | psTimeToTM (const psTime *time) |
| Convert psTime to struct tm time. | |
| timeval * | psTimeToTimeval (const psTime *time) |
| Convert psTime to timeval time. | |
| psTime * | psTimeFromJD (double jd) |
| Convert JD to psTime. | |
| psTime * | psTimeFromMJD (double mjd) |
| Convert MJD to psTime. | |
| psTime * | psTimeFromISO (const char *input, psTimeType type) |
| Convert ISO to psTime. | |
| psTime * | psTimeFromTimeval (const struct timeval *input) |
| Convert timeval to psTime. | |
| psTime * | psTimeFromTT (psS64 sec, psU32 nsec) |
| Convert Terrestrial Time to psTime. | |
| psTime * | psTimeFromUTC (psS64 sec, psU32 nsec, bool leapsecond) |
| Convert UTC time to psTime. | |
| psTime * | psTimeFromTM (const struct tm *time) |
| Convert tm time to psTime. | |
| psTime * | psTimeStrptime (const char *s, const char *format) |
| Convert an arbitrary string into a psTime. | |
| psTime * | psTimeMath (const psTime *time, double delta) |
| Adds delta to time. | |
| double | psTimeDelta (const psTime *time1, const psTime *time2) |
| Determine difference between two times. | |
| char * | p_psGetConfigFileName () |
| Get the filename of the psLib configuration file. | |
| psF64 | p_psTimeSearchTables (psF64 index, psU64 column, char *metadataTableNames[], psU32 nTables, psLookupStatusType *status) |
| Searches the IERS time tables for a specified entry location. | |
| bool | psTimerStart (char *name) |
| Stores the current time in a psHash of timers, under the supplied name. | |
| psF64 | psTimerClear (char *name) |
| Resets the named timer. | |
| psF64 | psTimerMark (char *name) |
| Returns the elapsed time, in seconds, for the timer specified by name. | |
| psF64 | psTimerStop (void) |
| Frees all memory associated with all timers and returns the expended time. | |
| psTime * | p_psTimeCopy (const psTime *inTime) |
| Private function for copying a psTime. | |
|
|
Time Bulletin type. Enumeration for psTimeBulletin type, A or B. |
|
|
Time type. Enumeration for psTime types, TAI or UTC time. |
|
|
Get the filename of the psLib configuration file.
|
|
|
Private function for copying a psTime.
|
|
|
Free memory persistant time data. Frees time data to be held in memory until the end of successful program execution.
|
|
|
Determine polar coordinates at a given time. Determines the orientation of the polar axis at the given time.
|
|
|
Determine TAI - UTC from table lookup. This function is necessary to for various psTime functions.
|
|
|
Initialize time data. Reads config and data files associated with various time conversions.
|
|
||||||||||||||||||||||||
|
Searches the IERS time tables for a specified entry location. Returns the interpolated double precision (arcsec) value at the specified entry location. Inputs to specify are the time index in mjd, the column number corresponding to Xp, Yp, or Sp (UT1-UTC) in IERS A or B, the time table names, and the number of time tables.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Provides tidal corrections to UT1-UTC. Uses the Ray model of Simon et al.
|
|
|
Allocate time struct. Allocates an empty time struct. User must specify the psTimeType (PS_TIME_TAI or PS_TIME_UTC) in the argument. The seconds and microseconds members of the struct are set to zero.
|
|
||||||||||||
|
Convert psTime to UTC, TAI, UT1, or TT time. Converts psTime to UTC, TAI, UT1, or TT time based on the psTimeType argument.
|
|
||||||||||||
|
Determine difference between two times. Result is in TAI time. Determine difference between two times. Input times are converted to TAI format if necessary.
|
|
|
Frees memory that was allocated by psTime functions. Allows a subsequent search for leaked memory. |
|
||||||||||||
|
Convert ISO to psTime. Converts ISO time to psTime. This function does not add or subtract leapseconds.
|
|
|
Convert JD to psTime. Converts JD time to psTime. This function does not add or subtract leapseconds.
|
|
|
Convert MJD to psTime. Converts MJD time to psTime. This function does not add or subtract leapseconds.
|
|
|
Convert timeval to psTime. Converts timeval time to psTime. This function does not add or subtract leapseconds.
|
|
|
Convert tm time to psTime. Converts tm time to psTime. This function is based on a Perl algorithm availble in the Pan-STARRS Image processing Algorithm Design Description (ADD). This function does not add or subtract leapseconds.
|
|
||||||||||||
|
Convert Terrestrial Time to psTime. Converts Terrestial Time to psTime. This function assumes resultant time is of type TT.
|
|
||||||||||||||||
|
Convert UTC time to psTime. Converts UTC time to psTime. It will verify if time specified is a leapsecond.
|
|
|
Get current time. Gets current time from the system clock. User must specify the psTimeType (PS_TIME_TAI or PS_TIME_UTC) in the argument.
|
|
||||||||||||
|
Determine UT1 - UTC from table lookup. This function is necessary to for various SLALIB functions.
|
|
|
Initialize time data. Reads the configuration file and sets up the appropriate psTimeTables and predictions.
|
|
|
Determine if UTC time is a leapsecond. Determines if the specified UTC time is a valid leapsecond.
|
|
||||||||||||
|
Calculate the number of leapseconds between two times. Calculates the number of leapseconds between two times.
|
|
||||||||||||
|
Adds delta to time. Result is in TAI time. Adds delta to time. Input time is converted to TAI format if necessary.
|
|
|
Resets the named timer.
|
|
|
Returns the elapsed time, in seconds, for the timer specified by name.
|
|
|
Stores the current time in a psHash of timers, under the supplied name.
|
|
|
Frees all memory associated with all timers and returns the expended time.
|
|
||||||||||||
|
Convert an arbitrary string into a psTime. Converts a string, using a strptime(3) format, into a psTime. See strptime(3) for documentation on this format.
|
|
|
Convert psTime to ISO8601 formatted string. Converts psTime to a null terminated string in the form of YYYY-MM-DDThh:mm:ss.sss. This function does not add or subtract leapseconds.
|
|
|
Convert psTime to Julian date time. Converts psTime to Julian date (JD) time. This function does not add or subtract leapseconds.
|
|
||||||||||||
|
Convert psTime to Local Mean Sidereal Time (LMST). Converts psTime at the given longitude to LMST time. If the input time is not in UTC format, then it is converted.
|
|
|
Convert psTime to modified Julian date time. Converts psTime to modified Julian date (MJD) time. This function does not add or subtract leapseconds.
|
|
|
Convert psTime to timeval time. Converts psTime to timeval time. This function does not add or subtract leapseconds.
|
|
|
Convert psTime to struct tm time. Converts psTime to struct tm time. This function should handle UTC leapseconds correctly.
|
1.4.4