BloombergLP::baltzo::TestLoader::setTimeZone

Set the time-zone data this loader returns for timeZoneId.

Synopsis

Declared in <baltzo_testloader.h>

int
setTimeZone(
    char const* timeZoneId,
    char const* timeZoneData,
    int timeZoneDataNumBytes);

Description

Set the time-zone data this test loader will return for the specified timeZoneId to the Zoneinfo value defined by reading the specified timeZoneData buffer, holding data in the Zoneinfo standard binary file format, of at least the specified timeZoneDataNumBytes. Return 0 on success, or a negative value if an error occurs. The behavior is undefined unless timeZoneData contains at least timeZoneDataNumBytes bytes.

Return Value

0 on success, or a negative value if an error occurs

Parameters

NameDescription
timeZoneIdidentifier of the time zone to configure
timeZoneDatabuffer holding Zoneinfo standard binary data
timeZoneDataNumBytesnumber of bytes in timeZoneData