82 if( sep == NULL ) 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 == NULL ) 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.
static EpochTime now()
Returns the current epoch time.
std::string hhmm(const char *sep=NULL) const
Returns a hhmm string.
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 seconds.
Time()
Constructor, using UTC, for now.
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).
struct std::tm BrokenDownTime
std::string hhmmss(const char *sep=NULL) const
Returns a hhmmss string.
int seconds() const
Returns the seconds (0 <= s <= 61 [sic]).