Module for translating between MJD(TT) strings and GPS.
Prototypes | |
LIGOTimeGPS * | XLALTranslateMJDTTtoGPS (LIGOTimeGPS *gps, INT4 mjdDays, REAL8 mjdFracDays) |
convert given MJD(TT) time, mjd = mjdDays + mjdFracDays into LIGOTimeGPS format, preserving full (ns) accuracy. More... | |
LIGOTimeGPS * | XLALTranslateStringMJDTTtoGPS (LIGOTimeGPS *gps, const char *mjdString) |
Parse and convert given string representing MJD(TT) time into LIGOTimeGPS gps time, without loss of (ns) accuracy. More... | |
LIGOTimeGPS* XLALTranslateMJDTTtoGPS | ( | LIGOTimeGPS * | gps, |
INT4 | mjdDays, | ||
REAL8 | mjdFracDays | ||
) |
convert given MJD(TT) time, mjd = mjdDays + mjdFracDays into LIGOTimeGPS format, preserving full (ns) accuracy.
returns gps input pointer on success, NULL on error.
[out] | gps | returned GPS time |
[in] | mjdDays | input MJD integer days, must be >= 0 |
[in] | mjdFracDays | input MJD fractional days, must be in [0, 1) |
Definition at line 49 of file TranslateMJD.c.
LIGOTimeGPS* XLALTranslateStringMJDTTtoGPS | ( | LIGOTimeGPS * | gps, |
const char * | mjdString | ||
) |
Parse and convert given string representing MJD(TT) time into LIGOTimeGPS gps time, without loss of (ns) accuracy.
returns gps input pointer on success, NULL on error.
[out] | gps | returned GPS time |
[in] | mjdString | input string representing MJD(TT) time |
Definition at line 91 of file TranslateMJD.c.