Template:cpp/chrono/format spec begin

The format specification has the form

,, and have the same meaning as in standard format specification. is valid only for std types where the representation type is a floating-point type, otherwise std is thrown.

The locale used for formatting is determined as follows:
 * the default locale if  is not present in the format specification,
 * otherwise, the locale denoted by the std passed to the formatting function, if any,
 * otherwise ( is present but no std is passed to the formatting function), the global locale.

The consists of one or more conversion specifiers and ordinary characters (other than {{tt|{}}, {{tt|} }} and ). A must start with a conversion specifier. All ordinary characters are written to the output without modification. Each unmodified conversion specifier begins with a character followed by a character that determines the behavior of the specifier. Some conversion specifiers have a modified form in which an or  modifier character is inserted after the  character. Each conversion specifier is replaced by appropriate characters in the output as described below.

If the is empty, the chrono object is formatted as if by  it to an object  of type  with the formatting locale (one of, the passed std object, and ) imbued and copying  to the output buffer with additional padding and adjustments as per format specifiers.

The following format specifiers are available:

{| class="wikitable" style="font-size:85%; max-width:90em;" ! Conversion specifier ! Explanation ! ! !
 * Writes a literal character.
 * Writes a newline character.
 * Writes a horizontal tab character.