Parse a FIX date‐tz string_view into a DateTz.

Synopsis

Declared in <bdlt_fixutil.h>

static
int
parse(
    DateTz* result,
    std::string_view const& string);

Description

Parse the specified FIX string as a DateTz value, and load the value into the specified result. Return 0 on success, and a non‐zero value (with no effect) otherwise. string is assumed to be of the form: ` YYYYMMDD{(+|‐)hh{:mm}|Z} ` Exactly string.length() characters are parsed; parsing will fail if a proper prefix of string matches the expected format, but the entire string.length() characters do not. If the optional timezone offset is not present in string, UTC is assumed. The behavior is undefined unless string.data() is non‐null.

Return Value

0 on success, non‐zero on failure

Parameters

Name

Description

result

destination for the parsed value

string

FIX date‐tz string to parse

Created with MrDocs