Provide bsl::formatter specialization for bdlt::Date.
Outline
Purpose
Provide bsl::formatter specialization for bdlt::Date.
Classes
- bdlt::DateFormatter: date specifier formatter template
- bsl::formatter<bdlt::Date, t_CHAR>: specialization
- See also
- bdlt_date, bdlt_formatter
Description
This component provides bdlt::DateFormatter and a specialization of bsl::formatter that allow bsl::format to output values of bdlt::Date.
The formatter supports various Date format specifiers including:
- Year: 'Y' (4-digit), 'y' (2-digit), 'C' (century)
- Month: 'm' (numeric), 'b'/'h' (abbreviated name)
- Day: 'd' (zero-padded), 'e' (space-padded)
- Day of week: 'a' (abbreviated name), 'u'/'w' (numeric)
- Day of year: 'j' (numeric)
- Compound: "{}" or 'D' (default format), 'F'/'i' (ISO 8601 format)