Functions | |
SCT_RET | sct_set_accuracy (sct_time_ptr pElem, SCT_ACCURACY accuracy) |
SCT_ACCURACY | sct_get_accuracy (const sct_time_ptr pElem) |
SCT_ACCURACY | sct_get_accuracy_from_jd (const double jd) |
SCT_ACCURACY | sct_get_accuracy_from_secs (const double secs) |
SCT_ACCURACY sct_get_accuracy | ( | const sct_time_ptr | pElem | ) |
Function to get the accuracy of a given element
pElem | (OUT) Pointer to the sct_time element. This pointer can be the same as the one in pSource. |
Definition at line 32 of file sct_accuracy.c.
References _sct_time_base::accuracy.
SCT_ACCURACY sct_get_accuracy_from_jd | ( | const double | jd | ) |
Function to automatically get the accuracy of a given epoch in JD, MJD or MJD2000 format
jd | (IN) Epoch value |
Definition at line 42 of file sct_accuracy.c.
References _sct_get_exponent_from_double(), SCT_ACCURACY_DAYS, SCT_ACCURACY_FEMTOSECS, and SCT_RET_OK.
Referenced by main(), sct_set_jd(), sct_set_mjd(), and sct_set_mjd2000().
Here is the call graph for this function:
SCT_ACCURACY sct_get_accuracy_from_secs | ( | const double | secs | ) |
Function to automatically get the accuracy of a given number of secs
secs | (IN) Number of seconds |
Definition at line 102 of file sct_accuracy.c.
References _sct_get_exponent_from_double(), SCT_ACCURACY_DAYS, SCT_ACCURACY_FEMTOSECS, and SCT_RET_OK.
Referenced by main(), and sct_set_delta_secs().
Here is the call graph for this function:
SCT_RET sct_set_accuracy | ( | sct_time_ptr | pElem, | |
SCT_ACCURACY | accuracy | |||
) |
Function to explicitly set the accuracy of a given element
pElem | (OUT) Pointer to the sct_time element. | |
accuracy | (IN) Accuracy level to be set in the element |
Definition at line 25 of file sct_accuracy.c.
References _sct_time_base::accuracy, and SCT_RET_OK.
Referenced by main().