Collaboration diagram for Time Functions:
|
Data Structures | |
| struct | psTime |
| Definition of psTime. More... | |
Typedefs | |
| typedef psTime | psTime |
| Definition of psTime. | |
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. | |
| psBool | p_psTimeFinalize (void) |
| Free memory persistant time data. | |
| psTime * | psTimeAlloc (psTimeType type) |
| Allocate time struct. | |
| psTime * | psTimeGetNow (psTimeType type) |
| Get current time. | |
| psTime * | psTimeConvert (psTime *time, psTimeType type) |
| Convert psTime to UTC or TAI time. | |
| psF64 | psTimeToLMST (psTime *time, psF64 longitude) |
| Convert psTime to Local Mean Sidereal Time (LMST). | |
| psF64 | psTimeGetUT1Delta (const psTime *time, psTimeBulletin bulletin) |
| Determine UT1 - UTC from table lookup. | |
| 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. | |
| psS64 | psTimeLeapSecondDelta (const psTime *time1, const psTime *time2) |
| Calculate the number of leapseconds between two times. | |
| psBool | psTimeIsLeapSecond (const psTime *utc) |
| Determine if UTC time is a leapsecond. | |
| psF64 | psTimeToJD (const psTime *time) |
| Convert psTime to Julian date time. | |
| psF64 | psTimeToMJD (const psTime *time) |
| Convert psTime to modified Julian date time. | |
| char * | psTimeToISO (const psTime *time) |
| Convert psTime to ISO8601 formatted string. | |
| timeval * | psTimeToTimeval (const psTime *time) |
| Convert psTime to timeval time. | |
| psTime * | psTimeFromJD (psF64 time) |
| Convert JD to psTime. | |
| psTime * | psTimeFromMJD (psF64 time) |
| Convert MJD to psTime. | |
| psTime * | psTimeFromISO (const char *time) |
| Convert ISO to psTime. | |
| psTime * | psTimeFromTimeval (const struct timeval *time) |
| Convert timeval to psTime. | |
| psTime * | psTimeFromTT (psS64 sec, psU32 nsec) |
| Convert Terrestrial Time to psTime. | |
| psTime * | psTimeFromUTC (psS64 sec, psU32 nsec, psBool leapsecond) |
| Convert UTC time to psTime. | |
| psTime * | p_psTimeFromTM (const struct tm *time) |
| Convert tm time to psTime. | |
| psTime * | psTimeMath (const psTime *time, psF64 delta) |
| Adds delta to time. | |
| psF64 | psTimeDelta (const psTime *time1, const psTime *time2) |
| Determine difference between two times. | |
| char * | p_psGetConfigFileName () |
| Get the filename of the psLib configuration file. | |
|
|
Definition of psTime. The psTime struct is used by psLib to represent time values critical to astronomical calculations. This structure represents a time which is equivalent to TAI (International Atomic Time) and is measured in both seconds and microseconds. |
|
|
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.
|
|
|
Free memory persistant time data. Frees time data to be held in memory until the end of successful program execution.
|
|
|
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.
|
|
|
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.
|
|
|
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 or TAI time. Converts psTime to UTC or TAI 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.
|
|
|
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 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.
|
|
|
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.
|
|
|
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.
|
1.4.1