GWOLLUM 4.2.0
Tools for gravitational-wave analyses
Loading...
Searching...
No Matches
CivilTime.cc File Reference
#include "Date.h"
Include dependency graph for CivilTime.cc:

Functions

string GetTimeStampFromGps (const unsigned int aGps)
 Returns the time stamp from a GPS time.
 
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.
 
double JulianDay (const struct tm *aUtc)
 Returns the Julian Day (JD) corresponding to the date given in a broken down time structure.
 
int LeapSeconds (const unsigned int aGps)
 Returns the leap seconds TAI-UTC at a given GPS second.
 
int LeapSecondsUTC (const struct tm *aUtc)
 Returns the leap seconds TAI-UTC for a given UTC broken down time.
 
unsigned int UTCToGPS (const struct tm *aUtc)
 Returns the GPS seconds for a specified UTC time structure.
 

Function Documentation

◆ GetTimeStampFromGps()

string GetTimeStampFromGps ( const unsigned int  aGps)

Returns the time stamp from a GPS time.

Format: "%Y-%b-%d %H:%M:%S"

Parameters
[in]aGpsGPS time [s].

◆ GPSToUTC()

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.

Parameters
[out]aUtcPointer to a time structure.
[in]aGpsGPS time [s].

◆ JulianDay()

double JulianDay ( const struct tm *  aUtc)

Returns the Julian Day (JD) corresponding to the date given in a broken down time structure.

Parameters
[in]aUtcPointer to a time structure.

◆ LeapSeconds()

int LeapSeconds ( const unsigned int  aGps)

Returns the leap seconds TAI-UTC at a given GPS second.

Parameters
[in]aGpsGPS time [s].

◆ LeapSecondsUTC()

int LeapSecondsUTC ( const struct tm *  aUtc)

Returns the leap seconds TAI-UTC for a given UTC broken down time.

Parameters
[in]aUtcPointer to a time structure.

◆ UTCToGPS()

unsigned int UTCToGPS ( const struct tm *  aUtc)

Returns the GPS seconds for a specified UTC time structure.

Parameters
[in]aUtcPointer to a time structure.