00001 /*************************************************************************** 00002 * Copyright (C) 2007 by Aleksander Morgado Juez * 00003 * scitime@aleksander_morgado.mm.st * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU Library General Public License as * 00007 * published by the Free Software Foundation; either version 2 of the * 00008 * License, or (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU Library General Public * 00016 * License along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00019 ***************************************************************************/ 00020 00021 #ifndef sct_timescales_H 00022 #define sct_timescales_H 00023 00024 #include "scitime.h" 00025 00040 SCT_TIMESCALE sct_get_timescale (const sct_time_ptr pElem); 00041 00042 00049 SCT_RET sct_set_timescale (sct_time_ptr pElem, SCT_TIMESCALE timescale); 00050 00051 00059 SCT_RET sct_from_TAI_to_UTC (sct_time_ptr pElem); 00060 00061 00069 SCT_RET sct_from_TAI_to_GPS (sct_time_ptr pElem); 00070 00071 00079 SCT_RET sct_from_TAI_to_UT (sct_time_ptr pElem); 00080 00081 00089 SCT_RET sct_from_UTC_to_TAI (sct_time_ptr pElem); 00090 00091 00099 SCT_RET sct_from_UTC_to_GPS (sct_time_ptr pElem); 00100 00101 00109 SCT_RET sct_from_UTC_to_UT (sct_time_ptr pElem); 00110 00111 00119 SCT_RET sct_from_GPS_to_TAI (sct_time_ptr pElem); 00120 00121 00129 SCT_RET sct_from_GPS_to_UTC (sct_time_ptr pElem); 00130 00131 00139 SCT_RET sct_from_GPS_to_UT (sct_time_ptr pElem); 00140 00141 00149 SCT_RET sct_from_UT_to_TAI (sct_time_ptr pElem); 00150 00151 00159 SCT_RET sct_from_UT_to_GPS (sct_time_ptr pElem); 00160 00161 00169 SCT_RET sct_from_UT_to_UTC (sct_time_ptr pElem); 00170 00171 00172 #endif 00173