Skip to content

Commit a9200b0

Browse files
committed
Improve P/R for 4124
1 parent 5d49033 commit a9200b0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

xml/issue4124.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ Let `f` be a <code><i>locale-time-format-t</i>&lt;Duration&gt;</code> object
5959
passed to `formatter::format`.
6060
</p>
6161
<p>-18- <i>Remarks</i>:
62+
<ins>If the <i>chrono-specs</i> is omitted, the result is equivalent to
63+
using `%F %T %Z` as the <i>chrono-specs</i>.</ins>
6264
If `%Z` is used,
6365
it is replaced with `*f.abbrev` if `f.abbrev` is not a null pointer value.
6466
If `%Z` is used and `f.abbrev` is a null pointer value,
@@ -68,12 +70,7 @@ it is formatted with the value of `*f.offset_sec` if `f.offset_sec` is
6870
not a null pointer value.
6971
If `%z` (or a modified variant of `%z`) is used and `f.offset_sec`
7072
is a null pointer value, then an exception of type `format_error` is thrown.
71-
<ins>If the <i>chrono-specs</i> is omitted, `f` is formatted as if by
72-
`format(loc, "{} {:L%Z}", f.time, f)`, where `loc` is the formatting locale.
73-
</ins>
7473
</p>
75-
<note>Drafting note: The inserted text above is not correct, as it doesn't
76-
account for padding etc.</note>
7774
<pre>
7875
template&lt;class Duration, class TimeZonePtr, class charT&gt;
7976
struct formatter&lt;chrono::zoned_time&lt;Duration, TimeZonePtr&gt;, charT&gt;

0 commit comments

Comments
 (0)