BloombergLP::balber::BerUtil_TimezoneOffsetImpUtil::getTimezoneOffsetInMinutesIfValid

Decode a time-zone offset if it is within the valid range.

Synopsis

Declared in <balber_berutil.h>

static
int
getTimezoneOffsetInMinutesIfValid(
    int* value,
    std::streambuf* streamBuf);

Description

If the offset is greater than or equal to k_MIN_OFFSET and less than or equal to k_MAX_OFFSET then load the value of the offset to the specified value and return zero, otherwise do not modify the value addressed by value and return non-zero.

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
valuedestination for the decoded value
streamBufinput stream buffer