File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 10994
10994
10995
10995
\pnum
10996
10996
\remarks
10997
+ If the \fmtgrammarterm {chrono-specs} is omitted,
10998
+ the result is equivalent to using \tcode {\% F \% T \% Z} as
10999
+ the \fmtgrammarterm {chrono-specs}.
10997
11000
If \tcode {\% Z} is used,
10998
11001
it is replaced with \tcode {*f.abbrev}
10999
11002
if \tcode {f.abbrev} is not a null pointer value.
11012
11015
\begin {codeblock }
11013
11016
template<class Duration, class TimeZonePtr, class charT>
11014
11017
struct formatter<chrono::zoned_time<Duration, TimeZonePtr>, charT>
11015
- : formatter<chrono::@\placeholder {local-time-format-t}@<Duration>, charT> {
11018
+ : formatter<chrono::@\placeholder {local-time-format-t}@<common_type_t< Duration, seconds> >, charT> {
11016
11019
template<class FormatContext>
11017
11020
typename FormatContext::iterator
11018
11021
format(const chrono::zoned_time<Duration, TimeZonePtr>& tp, FormatContext& ctx) const;
11032
11035
Equivalent to:
11033
11036
\begin {codeblock }
11034
11037
sys_info info = tp.get_info();
11035
- return formatter<chrono::@\placeholder {local-time-format-t}@<Duration>, charT>::
11038
+ return formatter<chrono::@\placeholder {local-time-format-t}@<common_type_t< Duration, seconds> >, charT>::
11036
11039
format({tp.get_local_time(), &info.abbrev, &info.offset}, ctx);
11037
11040
\end {codeblock }
11038
11041
\end {itemdescr }
You can’t perform that action at this time.
0 commit comments