Load raw time‐zone information for timeZoneId without normalizing.

Synopsis

Declared in <baltzo_datafileloader.h>

int
loadTimeZoneRaw(
    Zoneinfo* result,
    char const* timeZoneId);

Description

Load into the specified result the time‐zone information for the time zone identified by the specified timeZoneId exactly in accordance with the original data. The result may not be a "well‐formed" object (see baltzo::ZoneinfoUtil::isWellFormed documentation for details). Return 0 on success, and a non‐zero value otherwise. A return status of ErrorCode::k_UNSUPPORTED_ID indicates that timeZoneId is not recognized. If an error occurs during this operation, result will be left in a valid, but unspecified state. Note that time zone data files created by certain versions of the zic time zone compiler will have a sentinel transition prior to 01‐01‐0001 (the first representable Datetime value) and the result will therefore be non‐well formed (use loadTimeZone instead).

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

result

receives the loaded time‐zone information

timeZoneId

identifier of the time zone to load

Created with MrDocs