2#ifndef FACILITIES_TIMESTAMP_H
3#define FACILITIES_TIMESTAMP_H
58 Timestamp(
long int seconds,
int nano = 0,
int tzOffset = 0);
74 Timestamp(
const std::string& str,
int tzOffset = 0);
78 int hour = 0,
int minute = 0,
79 int second = 0,
int nano = 0);
91 return ((
m_time < other.m_time) ||
96 return (other < (*
this));
101 return ( !(other < (*
this)) );
105 return ( !( (*
this) < other ) );
115 return ((
m_time == other.m_time) && (
m_nano == other.m_nano));
119 return (!(*
this == other));
127 static const double julian1970;
128 static const int secPerDay;
129 static const double inverseNano;
130 static const int inverseNanoInt;
131 static const long int maxInt;
140 long int m_tzseconds;
143 static TZOffset s_tz;
146 static time_t toBinary(
const std::string& strTime);
149 static void toString(time_t
bin, std::string& strTime);
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
std::string getString() const
Return string representation of time, not including nanoseconds;.
bool operator==(const Timestamp &other) const
bool operator!=(const Timestamp &other) const
bool operator>=(const Timestamp &other) const
bool operator<(const Timestamp &other) const
Timestamp(const std::string &str, int tzOffset=0)
double getJulian() const
Return julian date.
long int getClibTime() const
Timestamp & operator=(const Timestamp &other)
bool operator>(const Timestamp &other) const
Timestamp(double julian)
Constructor for Julian date. Must be GMT.
bool operator<=(const Timestamp &other) const
Timestamp(int year, int month, int day, int hour=0, int minute=0, int second=0, int nano=0)
Construct absolute time with specified fields.
Timestamp(long int seconds, int nano=0, int tzOffset=0)
int m_nano
Save fractional seconds separately (associated with m_time)
time_t m_time
internal binary rep of time; count seconds from Jan 1, 1970