BloombergLP::bdlt::Iso8601Util::generate

Format the specified object into the specified buffer using ISO 8601.

Synopsis

Declared in <bdlt_iso8601util.h>

static
int
generate(
    char* buffer,
    DateTz const& object,
    ssize_t bufferLength,
    bool useZAbbreviationForUtc);

Return Value

the number of characters in the formatted string

Parameters

NameDescription
bufferoutput buffer for the generated ISO 8601 text
objectvalue to format
bufferLengthcapacity of buffer in bytes
useZAbbreviationForUtcif true, use Z for a UTC offset of zero; otherwise use +00:00