Parse a FIX date string of the given length into a Date.
Synopsis
Declared in <bdlt_fixutil.h>
static
int
parse(
Date* result,
char const* string,
int length);
Description
Parse the specified initial length characters of the specified FIX string as a Date 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 length characters are parsed; parsing will fail if a proper prefix of string matches the expected format, but the entire length characters do not. If the optional timezone offset is present in string, it is parsed but ignored. The behavior is undefined unless 0 <= length.
Return Value
0 on success, non‐zero on failure
Parameters
Name |
Description |
result |
destination for the parsed value |
string |
FIX input string |
length |
number of characters to parse |
Created with MrDocs