BloombergLP::baltzo::TimeZoneUtil::initLocalTime

Initialize a LocalDatetime result and load validity; see the primary initLocalTime overload.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
initLocalTime(
    LocalDatetime* 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

NameDescription
resultreceives the initialized local date-time
resultValidityreceives the validity of localTime
localTimelocal date-time to interpret
timeZoneIdidentifier of the time zone for localTime
dstPolicydaylight-saving policy for interpreting localTime