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

Name

Description

timeZoneId

identifier of the time zone to configure

timeZoneData

buffer holding Zoneinfo standard binary data

timeZoneDataNumBytes

number of bytes in timeZoneData

Created with MrDocs