12#define M_C 299792458.0
13#define EPOCH_J2000_0_JD 2451545.0
14#define EPOCH_UNIX_GPS 315964800
15#define EPOCH_GPS_TAI_UTC 19
35struct tm*
GPSToUTC(
struct tm *aUtc,
unsigned int aGps);
41unsigned int UTCToGPS(
const struct tm *aUtc);
Generic C utility functions.
unsigned int UTCToGPS(const struct tm *aUtc)
Returns the GPS seconds for a specified UTC time structure.
Definition CivilTime.cc:52
int LeapSecondsUTC(const struct tm *aUtc)
Returns the leap seconds TAI-UTC for a given UTC broken down time.
Definition CivilTime.cc:28
int LeapSeconds(const unsigned int aGps)
Returns the leap seconds TAI-UTC at a given GPS second.
Definition CivilTime.cc:16
double GreenwichSiderealTime(const double aGps, const double aEquationOfEquinoxes)
Returns the Greenwich mean or aparent sideral time in radians.
Definition SiderealTime.cc:7
struct tm * GPSToUTC(struct tm *aUtc, unsigned int aGps)
Returns a pointer to a tm structure representing the time specified in seconds since the GPS epoch.
Definition CivilTime.cc:40
double GreenwichMeanSiderealTime(const double aGps)
Returns the Greenwich Mean Sidereal Time in RADIANS for a specified GPS time.
Definition SiderealTime.cc:60
string GetTimeStampFromGps(const unsigned int aGps)
Returns the time stamp from a GPS time.
Definition CivilTime.cc:89
double JulianDay(const struct tm *aUtc)
Returns the Julian Day (JD) corresponding to the date given in a broken down time structure.
Definition CivilTime.cc:70
Definition of leap seconds.