47 Time(
int hh ,
int mm ,
int ss ) ;
64 static Time at(
unsigned int ) ;
79 std::string
hhmmss(
const char * sep =
nullptr )
const ;
82 std::string
hhmm(
const char * sep =
nullptr )
const ;
85 std::string
ss()
const ;
88 unsigned int value()
const ;
99 static std::string xx(
int ) ;
An encapsulation of 'struct std::tm'.
Represents a unix-epoch time with microsecond resolution.
An overload discriminator class for Time constructors.
A simple time-of-day (hh/mm/ss) class.
bool operator==(const Time &) const
Comparison operator.
unsigned int value() const
Returns the time as the number of seconds since midnight (ignoring leap seconds).
int minutes() const
Returns the minutes (0 <= m < 60).
static Time at(unsigned int)
Factory function for a time that is the given number of seconds since midnight (see value()).
std::string hhmm(const char *sep=nullptr) const
Returns the hhmm string.
int hours() const
Returns the hours (0 <= h < 24).
Time()
Constructor for the current time, using UTC.
std::string ss() const
Returns the seconds as a two-digit decimal string.
int seconds() const
Returns the seconds (0 <= s <= 61).
bool operator!=(const Time &) const
Comparison operator.
std::string hhmmss(const char *sep=nullptr) const
Returns the hhmmss string.