00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef sct_io_H
00022 #define sct_io_H
00023
00024
00025
00039 int sct_set_jd (sct_time_ptr pElement, const double jd);
00040
00041
00052 int sct_set_jd_acc (sct_time_ptr pElement, \
00053 const double jd, const SCT_ACCURACY accuracy);
00054
00055
00065 int sct_set_mjd (sct_time_ptr pElement, const double mjd);
00066
00067
00078 int sct_set_mjd_acc (sct_time_ptr pElement, \
00079 const double mjd, const SCT_ACCURACY accuracy);
00080
00081
00091 int sct_set_mjd2000 (sct_time_ptr pElement, const double mjd2000);
00092
00093
00104 int sct_set_mjd2000_acc (sct_time_ptr pElement, \
00105 const double mjd2000, const SCT_ACCURACY accuracy);
00106
00107
00122 int sct_set_YMDHMSF ( \
00123 sct_time_ptr pElement, \
00124 const unsigned int year, \
00125 const unsigned int month, \
00126 const unsigned int day, \
00127 const unsigned int hour, \
00128 const unsigned int minute, \
00129 const unsigned int second, \
00130 const u_int64_t femtosecond);
00131
00141 int sct_copy(sct_time_ptr pDest, const sct_time_ptr pSource);
00142
00151 int sct_set_delta_secs (sct_time_ptr pDelta, const double secs);
00152
00153
00160 int sct_clear(sct_time_ptr pElement);
00161
00162
00163
00177 int sct_get_jd (const sct_time_ptr pElement, double *pJd);
00178
00179
00180
00191 int sct_get_mjd (const sct_time_ptr pElement, double *pMjd);
00192
00193
00194
00205 int sct_get_mjd2000 (const sct_time_ptr pElement, double *pMjd2000);
00206
00221 int sct_get_YMDHMSF ( \
00222 const sct_time_ptr pElement, \
00223 unsigned int *pYear, \
00224 unsigned int *pMonth, \
00225 unsigned int *pDay, \
00226 unsigned int *pHour, \
00227 unsigned int *pMinute, \
00228 unsigned int *pSecond, \
00229 u_int64_t *pFemtosecond);
00230
00231
00240 int sct_get_delta_secs (const sct_time_ptr pDelta, double *pSecs);
00241
00242
00249 int sct_print(const sct_time_ptr pElement);
00250
00251
00252
00253 #endif //sct_io_H