Load the ISO 8601 representation of the specified object into string.

Synopsis

Declared in <bdlt_iso8601util.h>

static
int
generate(
    std::pmr::string* string,
    bsls::TimeInterval const& object);

Description

Load the ISO 8601 representation of the specified object into the specified string of type bsl::string, std::string, or std::pmr::string. Optionally specify a configuration to affect the format of the generated string. If configuration is not supplied, the process‐wide default value Iso8601UtilConfiguration::defaultConfiguration() is used. Return the number of characters in the formatted string. The previous contents of string (if any) are discarded.

Return Value

the number of characters in the formatted string

Parameters

Name

Description

string

receives the generated ISO 8601 text

object

value to format

Created with MrDocs