BloombergLP::bdlt::Iso8601Util::generate

generate overloads

Synopses

Declared in <bdlt_iso8601util.h>

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Date const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DateOrDateTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DateTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Datetime const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DatetimeOrDatetimeTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DatetimeTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Time const& object);
» more...

Write the ISO 8601 representation of the specified object to the specified stream. 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 a reference to stream. Note that stream is not null terminated.

static
std::ostream&
generate(
    std::ostream& stream,
    bsls::TimeInterval const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    TimeOrTimeTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    TimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Date const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DateOrDateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Datetime const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DatetimeOrDatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Time const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    bsls::TimeInterval const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    TimeOrTimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    TimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Date const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DateOrDateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Datetime const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DatetimeOrDatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Time const& object);
» more...

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.

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

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    TimeOrTimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    TimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Date const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DateOrDateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DateTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Datetime const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DatetimeOrDatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DatetimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Time const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

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

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    TimeOrTimeTz const& object);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    TimeTz const& object);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Date const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DateOrDateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DateTz const& object,
    bool useZAbbreviationForUtc);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Datetime const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DatetimeOrDatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DatetimeTz const& object,
    bool useZAbbreviationForUtc);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    DatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    Time const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    bsls::TimeInterval const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    TimeOrTimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    TimeTz const& object,
    bool useZAbbreviationForUtc);
» more...

Write the ISO 8601 representation of the specified object to stream.

static
std::ostream&
generate(
    std::ostream& stream,
    TimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Date const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DateOrDateTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DateTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Datetime const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DatetimeOrDatetimeTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DatetimeTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Time const& object);
» more...

Write the ISO 8601 representation of the specified object to the specified buffer of the specified bufferLength (in bytes), truncating (if necessary) to bufferLength. 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 before truncation (not counting a null terminator). If bufferLength indicates sufficient capacity, buffer is null terminated. The behavior is undefined unless 0 <= bufferLength. Note that a buffer of size k_MAX_STRLEN + 1 is large enough to hold any string generated by this component (counting a null terminator, if any).

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    bsls::TimeInterval const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    TimeOrTimeTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    TimeTz const& object);
» more...

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

static
int
generate(
    char* buffer,
    Date const& object,
    ssize_t bufferLength);
» more...

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

static
int
generate(
    char* buffer,
    DateTz const& object,
    ssize_t bufferLength);
» more...

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

static
int
generate(
    char* buffer,
    Datetime const& object,
    ssize_t bufferLength);
» more...

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

static
int
generate(
    char* buffer,
    DatetimeTz const& object,
    ssize_t bufferLength);
» more...

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

static
int
generate(
    char* buffer,
    Time const& object,
    ssize_t bufferLength);
» more...

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

static
int
generate(
    char* buffer,
    TimeTz const& object,
    ssize_t bufferLength);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Date const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DateOrDateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Datetime const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DatetimeOrDatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    DatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    Time const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    bsls::TimeInterval const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    TimeOrTimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    bsl::string* string,
    TimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Date const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DateOrDateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Datetime const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DatetimeOrDatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    DatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    Time const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    bsls::TimeInterval const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    TimeOrTimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::pmr::string* string,
    TimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Date const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DateOrDateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DateTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Datetime const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DatetimeOrDatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    DatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    Time const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    bsls::TimeInterval const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    TimeOrTimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

Append the ISO 8601 representation of the specified object to string.

static
int
generate(
    std::string* string,
    TimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Date const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DateOrDateTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DateTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Datetime const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DatetimeOrDatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    DatetimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    Time const& object,
    GenerateConfiguration const& configuration);
» more...

Write the ISO 8601 representation of the specified object to the specified buffer, using the specified configuration.

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    bsls::TimeInterval const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    TimeOrTimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

static
int
generate(
    char* buffer,
    ssize_t bufferLength,
    TimeTz const& object,
    GenerateConfiguration const& configuration);
» more...

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

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

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

static
int
generate(
    char* buffer,
    DatetimeTz const& object,
    ssize_t bufferLength,
    bool useZAbbreviationForUtc);
» more...

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

static
int
generate(
    char* buffer,
    TimeTz const& object,
    ssize_t bufferLength,
    bool useZAbbreviationForUtc);
» more...