Data Structures | |
| struct | psTime |
| Definition of psTime. More... | |
Typedefs | |
| typedef psTime | psTime |
| Definition of psTime. | |
Enumerations | |
| enum | psTimeType { PS_TIME_TAI, PS_TIME_UTC } |
| Time 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 * | psTimeGetTime (psTimeType type) |
| Get current time. | |
| psTime * | psTimeConvert (psTime *time, psTimeType type) |
| Convert psTime to UTC or TAI time. | |
| double | psTimeToLST (psTime *time, double longitude) |
| Convert psTime to Local Mean Sidereal Time (LST). | |
| double | psTimeGetUT1Delta (const psTime *time) |
| Determine UT1 - UTC from table lookup. | |
| double | psTimeGetTAIDelta (const psTime *time) |
| Determine TAI - UTC from table lookup. | |
| psSphere * | psTimeGetPoleCoords (const psTime *time) |
| Determine polar coordinates at a given time. | |
| psS64 | psTimeLeapseconds (const psTime *time1, const psTime *time2) |
| Calculate the number of leapseconds between two times. | |
| double | psTimeToJD (const psTime *time) |
| Convert psTime to Julian date time. | |
| double | psTimeToMJD (const psTime *time) |
| Convert psTime to modified Julian date time. | |
| char * | psTimeToISOTime (const psTime *time) |
| Convert psTime to ISO8601 formatted string. | |
| timeval | psTimeToTimeval (const psTime *time) |
| Convert psTime to timeval time. | |
| tm * | psTimeToTM (const psTime *time) |
| Convert psTime to tm time. | |
| psTime * | psTimeFromJD (double time) |
| Convert JD to psTime. | |
| psTime * | psTimeFromMJD (double time) |
| Convert MJD to psTime. | |
| psTime * | psTimeFromISOTime (const char *time) |
| Convert ISO to psTime. | |
| psTime * | psTimeFromTimeval (const struct timeval *time) |
| Convert timeval to psTime. | |
| psTime * | 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 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.
|
|
|
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 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.
|
|
|
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.
|
|
||||||||||||
|
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 (LST). Converts psTime at the given longitude to LST 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 tm time. Converts psTime to tm time. 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.
|
1.3.9.1