1 #ifndef _utl_UTCDateTime_h_
2 #define _utl_UTCDateTime_h_
4 #include <utl/UTCDate.h>
5 #include <utl/TimeStamp.h>
78 std::istream&
Parse(std::istream&
is);
94 {
return utc.
Parse(is); }
std::time_t GetUnixSecond() const
Relative to Unix epoch (1 Jan 1970 00:00:00 UTC) without leap corrections.
std::time_t GetUnixSecond() const
seconds after Unix epoch (1 Jan 1970) without any leap corrections
std::istream & operator>>(std::istream &is, SVector< n, T > &v)
void SetHMS(const int hour, const int minute, const int second, const double nanosecond=0)
double GetNanosecond() const
std::string GetInAugerFormat() const
void Set(const int year, const int month, const int day)
bool is(const double a, const double b)
static UTCDateTime GetUnixEpoch()
UTCDateTime(const int year, const int month, const int day, const int hour=0, const int minute=0, const int second=0, const double nanosecond=0)
std::string GetInMySQLFormat() const
std::istream & Parse(std::istream &is)
A TimeStamp holds GPS second and nanosecond for some event.
Stream & operator<<(Stream &s, MessageLoggerConfig &mlc)
Applies the configuration to the given stream.
static UTCDateTime GetGPSEpoch()
static UTCDate GetUnixEpoch()
constexpr double nanosecond
static UTCDate GetGPSEpoch()
friend std::istream & operator>>(std::istream &, UTCDateTime &)
void Set(const int year, const int month, const int day, const int hour, const int minute, const int second, const double nanosecond=0)
std::string GetInXMLFormat() const
TimeStamp GetTimeStamp() const
UTCDateTime(const UTCDate &date, const int hour=0, const int minute=0, const int second=0, const double nanosecond=0)