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 stream.

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...

Generate the ISO 8601 representation of object into 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 string.

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 buffer.

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...

Return Value

  • a reference to stream
  • the number of characters in the formatted string
  • number of characters written, or a negative value on error
  • number of characters written before truncation

Parameters

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