This struct provides a namespace for a suite of pure functions that perform conversions between objects of bdlt vocabulary type and their ISO 8601 representations. Each generate and generateRaw method takes a bdlt object (of type Date, DateTz, Time, TimeTz, Datetime, or DatetimeTz) and outputs its corresponding ISO 8601 representation to a user-supplied character buffer or bsl::ostream. The parse methods effect the opposite conversion in that they populate a bdlt object from the result of parsing an ISO 8601 representation.
Declared in <bdlt_iso8601util.h>
struct Iso8601Util;
| Name | Description |
|---|---|
Configuration | Alias for Iso8601UtilConfiguration. |
DateOrDateTz | DateOrDateTz is a convenient alias for bdlb::Variant2<Date, DateTz>. |
DatetimeOrDatetimeTz | DatetimeOrDatetimeTz is a convenient alias for bdlb::Variant2<Datetime, DatetimeTz>. |
GenerateConfiguration | Configuration for string generation. |
ParseConfiguration | Configuration for string parsing. |
TimeOrTimeTz | TimeOrTimeTz is a convenient alias for bdlb::Variant2<Time, TimeTz>. |
ssize_t | Signed size type used by this component. |
| Name | Description |
|---|---|
Unnamed enum | Fixed buffer lengths for ISO 8601 string representations. |
| Name | Description |
|---|---|
generate | generate overloads |
generateRaw | generateRaw overloads |
parse | parse overloads |
parseRelaxed | parseRelaxed overloads |