Initialize a bdlt::DatetimeTz result and load validity; see the primary initLocalTime overload.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
initLocalTime(
    bdlt::DatetimeTz* result,
    LocalTimeValidity::Enum* resultValidity,
    bdlt::Datetime const& localTime,
    char const* timeZoneId,
    DstPolicy::Enum dstPolicy = DstPolicy::e_UNSPECIFIED);

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

result

receives the initialized local date‐time

resultValidity

receives the validity of localTime

localTime

local date‐time to interpret

timeZoneId

identifier of the time zone for localTime

dstPolicy

daylight‐saving policy for interpreting localTime

Created with MrDocs