Provide bsl::formatter specialization for bdlt::Time.
Outline
Purpose
Provide bsl::formatter specialization for bdlt::Time.
Classes
- bdlt::TimeFormatter: time formatter for
bslfmt framework
- bsl::formatter<bdlt::Time, t_CHAR>: specialization
- See also
- bdlt_time, bslfmt_formatter
Description
This component provides bdlt::TimeFormatter and a specialization of bsl::formatter that allow bsl::format to output values of bdlt::Time.
The formatter interprets the following modifiers:
- ',' (comma) - the decimal point when displaying seconds is shown as a comma rather than a period.
The formatter supports various time format specifiers including:
- Hour: 'H' (2 digit) "00" - "24"
- Hour: 'I' (2 digit) "01" - "12"
- AM/PM: 'p' - "AM" or "PM"
- Minute: 'M' (2 digits) "00" - "59"
- Second: 'S' (2 digits) "00" - "59"
- Composite: "{}" or 'T' (time in default format), or 'i' (time in ISO 8601 format)