968 B
968 B
[time.hms.nonmembers]
30 Time library [time]
30.9 Class template hh_mm_ss [time.hms]
30.9.3 Non-members [time.hms.nonmembers]
template<class charT, class traits, class Duration> basic_ostream<charT, traits>& operator<<(basic_ostream<charT, traits>& os, const hh_mm_ss<Duration>& hms);
Effects: Equivalent to:return os << format(os.getloc(), STATICALLY-WIDEN("{:L%T}"), hms);
[Example 1: for (auto ms : {-4083007ms, 4083007ms, 65745123ms}) { hh_mm_ss hms{ms}; cout << hms << '\n';} cout << hh_mm_ss{65745s} << '\n';
Produces the output (assuming the "C" locale):-01:08:03.00701:08:03.00718:15:45.12318:15:45
â end example]