82 if( sep ==
nullptr ) sep =
"" ;
83 std::ostringstream ss ;
84 ss << (m_hh/10) << (m_hh%10) << sep << (m_mm/10) << (m_mm%10) << sep << (m_ss/10) << (m_ss%10) ;
90 if( sep ==
nullptr ) sep =
"" ;
91 std::ostringstream ss ;
92 ss << (m_hh/10) << (m_hh%10) << sep << (m_mm/10) << (m_mm%10) ;
98 std::ostringstream ss ;
99 ss << (m_ss/10) << (m_ss%10) ;
static BrokenDownTime utc(EpochTime epoch_time)
Converts from epoch time to UTC broken-down-time.
std::string hhmmss(const char *sep=nullptr) const
Returns the hhmmss string.
A subsecond-resolution timestamp based on a time_t.
static BrokenDownTime local(EpochTime epoch_time)
Converts from epoch time to local broken-down-time.
std::string ss() const
Returns the seconds as a two-digit decimal string.
static EpochTime now()
Returns the current epoch time.
Time()
Constructor for the current time, using UTC.
An overload discriminator class for Time constructors.
int minutes() const
Returns the minutes (0 <= m < 60).
int hours() const
Returns the hours (0 <= h < 24).
std::string hhmm(const char *sep=nullptr) const
Returns the hhmm string.
int seconds() const
Returns the seconds (0 <= s <= 61).