From Jason Turner

[time.hms.nonmembers]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpjx4c19s5/{from.md → to.md} +35 -0
tmp/tmpjx4c19s5/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ### Non-members <a id="time.hms.nonmembers">[[time.hms.nonmembers]]</a>
2
+
3
+ ``` cpp
4
+ template<class charT, class traits, class Duration>
5
+ basic_ostream<charT, traits>&
6
+ operator<<(basic_ostream<charT, traits>& os, const hh_mm_ss<Duration>& hms);
7
+ ```
8
+
9
+ *Effects:* Equivalent to:
10
+
11
+ ``` cpp
12
+ return os << format(os.getloc(), STATICALLY-WIDEN<charT>("{:%T}"), hms);
13
+ ```
14
+
15
+ [*Example 1*:
16
+
17
+ ``` cpp
18
+ for (auto ms : {-4083007ms, 4083007ms, 65745123ms}) {
19
+ hh_mm_ss hms{ms};
20
+ cout << hms << '\n';
21
+ }
22
+ cout << hh_mm_ss{65745s} << '\n';
23
+ ```
24
+
25
+ Produces the output (assuming the "C" locale):
26
+
27
+ ``` cpp
28
+ -01:08:03.007
29
+ 01:08:03.007
30
+ 18:15:45.123
31
+ 18:15:45
32
+ ```
33
+
34
+ — *end example*]
35
+