63 Time(time_t unixSeconds){
69 Time(
const std::string &time,
const std::string &format,
bool STRICT=
true){
90 tm *gt = gmtime(&time);
108 void setTime(
const std::string &time,
const std::string &format,
bool STRICT=
true);
132 time_t
getTime()
const {
return timegm((tm *)
this);};
136 const std::string &
str(
const std::string & format =
"")
const;
142 std::cerr <<
"H=" << this->tm_hour <<
", DST=" << this->tm_isdst <<
'\n';
148 mutable std::string timeStr;
Utility for handling time. Internally, uses tm (C time structure).
Definition: Time.h:54
const tm & getTm() const
Sets time to UTC time.
Definition: Time.h:126
const std::string & str(const std::string &format="") const
Returns the std::string using formatting as defined by strftime()
Definition: Time.cpp:76
void setTime(time_t time)
Sets time to UTC time.
Definition: Time.h:89
time_t getTime() const
Returns time in seconds.
Definition: Time.h:132
void setTime()
Sets time to current UTC time.
Definition: Time.h:80
Definition: DataSelector.cpp:1277