BloombergLP::bdlt::Iso8601Util::parseRelaxed

parseRelaxed overloads

Synopses

Declared in <bdlt_iso8601util.h>

Parse a relaxed ISO 8601 string as a Datetime.

static
int
parseRelaxed(
    Datetime* result,
    std::string_view const& string);
» more...

Parse a relaxed ISO 8601 string as Datetime or DatetimeTz.

static
int
parseRelaxed(
    DatetimeOrDatetimeTz* result,
    std::string_view const& string);
» more...

Parse a relaxed ISO 8601 string as a DatetimeTz.

static
int
parseRelaxed(
    DatetimeTz* result,
    std::string_view const& string);
» more...

Parse the first length characters of a relaxed ISO 8601 string as a Datetime.

static
int
parseRelaxed(
    Datetime* result,
    char const* string,
    ssize_t length);
» more...

Parse the first length characters of a relaxed ISO 8601 string as Datetime or DatetimeTz.

static
int
parseRelaxed(
    DatetimeOrDatetimeTz* result,
    char const* string,
    ssize_t length);
» more...

Parse the first length characters of a relaxed ISO 8601 string as a DatetimeTz.

static
int
parseRelaxed(
    DatetimeTz* result,
    char const* string,
    ssize_t length);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultreceives the parsed Datetime
stringISO 8601 text to parse
lengthnumber of characters to parse