BloombergLP::bdlt::DatetimeFormatter

This class provides a specifier formatter for printing Datetime objects.

Synopsis

Declared in <bdlt_datetimeformatter.h>

template<class t_CHAR>
class DatetimeFormatter;

Member Functions

NameDescription
DatetimeFormatter [constructor]Create an object in its default initial state.
extraSections Return the bslfmt::FormatSpecificationParser::Sections flags that apply to this value type.
formatDefault Format value to out using the default datetime layout.
formatIso8601 Format value to out using the ISO 8601 datetime layout.
formatNextSpecifier Format one recognized specifier from *specInOut into *outIt.
parseDefault Parse a date time that will be formatted in default mode.
parseIso8601 Parse a date time that will be formatted in Iso8601 mode.
parseNextModifier Parse a format modifier from the front of *specInOut if present.
parseNextSpecifier Parse the next recognized datetime format specifier from *specInOut.
postprocess Read post-processed fields from the specified spec that are relevant to this specifier formatter.
totalWidth Return the anticipated formatted width for the specified value.