Skip to content

Commit 1a37c22

Browse files
committed
[time.hms.nonmembers] Finish rebase on std::format: rewrite hh_mm_ss
operator<< in terms of format rather than using (removed) old formatting terminology.
1 parent 2e82327 commit 1a37c22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/time.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8037,12 +8037,12 @@
80378037
\begin{itemdescr}
80388038
\pnum
80398039
\effects
8040-
Outputs to \tcode{os} according to the format \tcode{"\%T"}\iref{time.format}.
8041-
If \tcode{hms.is_negative()}, the output is preceded with \tcode{'-'}.
8042-
8043-
\pnum
8044-
\returns
8045-
\tcode{os}.
8040+
Equivalent to:
8041+
\begin{codeblock}
8042+
if (hms.is_negative())
8043+
os << @\placeholder{STATICALLY-WIDEN}@<charT>("-");
8044+
return os << format(os.getloc(), @\placeholder{STATICALLY-WIDEN}@<charT>("{:%T}"), hms);
8045+
\end{codeblock}
80468046

80478047
\pnum
80488048
\begin{example}

0 commit comments

Comments
 (0)