Load well‐formed time‐zone information for timeZoneId.
Synopsis
Declared in <baltzo_datafileloader.h>
virtual
int
loadTimeZone(
Zoneinfo* result,
char const* timeZoneId) override;
Description
Load into the specified result the time‐zone information for the time zone identified by the specified timeZoneId. The result will have a sentinel transition at 01‐01‐001, meeting the first two requirements for a "well‐formed" object (see baltzo::ZoneinfoUtil::isWellFormed documentation). 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.
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