BloombergLP::balber::BerUtil_Iso8601ImpUtil::getDatetimeTzValue

Decode an ISO 8601 datetime with time zone from streamBuf.

Synopsis

Declared in <balber_berutil.h>

static
int
getDatetimeTzValue(
    bdlt::DatetimeTz* value,
    std::streambuf* streamBuf,
    int length);

Description

by the interpretation of the read bytes as an ISO 8601 date, time, and time zone. Return 0 on success, and a non-zero value otherwise. The operation succeeds if length bytes are successfully read from the input sequence of the streamBuf without the read position becoming unavailable, and the bytes contain a valid representation of an ISO 8601 date, time, and time zone.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuedestination for the decoded value
streamBufinput stream buffer
lengthnumber of content octets