GWOLLUM 4.2.0
Tools for gravitational-wave analyses
Loading...
Searching...
No Matches
Date.h
Go to the documentation of this file.
1
6#ifndef _DATE_H
7#define _DATE_H
8
9#include "CUtils.h"
10#include "LeapSeconds.h" /* contains the leap second table */
11
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
16
21int LeapSeconds(const unsigned int aGps);
22
27int LeapSecondsUTC(const struct tm *aUtc);
28
35struct tm* GPSToUTC(struct tm *aUtc, unsigned int aGps);
36
41unsigned int UTCToGPS(const struct tm *aUtc);
42
48double JulianDay(const struct tm *aUtc);
49
55string GetTimeStampFromGps(const unsigned int aGps);
56
79double GreenwichSiderealTime(const double aGps, const double aEquationOfEquinoxes);
80
87double GreenwichMeanSiderealTime(const double aGps);
88
89#endif /* _DATE_H */
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.