Specifier | Replacement | |
%a | ||
%A | ||
%b | ||
%B | ||
%c | ||
%C | ||
%d | ||
%D | Equivalent to %m/%d/%y. | |
%e | ||
%F | Equivalent to %Y-%m-%d. | |
%g | ||
%G | ||
%h | Equivalent to %b. | |
%H | ||
%I | ||
%j | ||
%m | ||
%M | ||
%n | A new-line character. | |
%p | The locale's equivalent of the AM/PM designations associated with a 12-hour clock. | |
%q | The duration's unit suffix as specified in [time.duration.io]. | |
%Q | The duration's numeric value (as if extracted via .count()). | |
%r | The locale's 12-hour clock time. | |
%R | Equivalent to %H:%M. | |
%S | Seconds as a decimal number. If the precision of the input cannot be exactly represented with seconds,
then the format is a decimal floating-point number with a fixed format
and a precision matching that of the precision of the input
(or to a microseconds precision if the conversion to floating-point decimal seconds
cannot be made within 18 fractional digits). The character for the decimal point is localized according to the locale. The modified command %OS produces
the locale's alternative representation. | |
%t | A horizontal-tab character. | |
%T | Equivalent to %H:%M:%S. | |
%u | ||
%U | ||
%V | ||
%w | ||
%W | ||
%x | ||
%X | ||
%y | ||
%Y | ||
%z | ||
%Z | ||
%% | A % character. |
template<class Duration, class charT>
struct formatter<chrono::sys_time<Duration>, charT>;
template<class Duration, class charT>
struct formatter<chrono::utc_time<Duration>, charT>;
template<class Duration, class charT>
struct formatter<chrono::tai_time<Duration>, charT>;
template<class Duration, class charT>
struct formatter<chrono::gps_time<Duration>, charT>;
template<class Duration, class charT>
struct formatter<chrono::file_time<Duration>, charT>;
template<class Duration, class charT>
struct formatter<chrono::local_time<Duration>, charT>;
template<class Duration>
local-time-format-t<Duration>
local_time_format(local_time<Duration> time, const string* abbrev = nullptr,
const seconds* offset_sec = nullptr);
template<class Duration, class charT>
struct formatter<chrono::local-time-format-t<Duration>, charT>;
template<class FormatContext>
typename FormatContext::iterator
format(const chrono::zoned_time<Duration, TimeZonePtr>& tp, FormatContext& ctx);