BloombergLP::baltzo::TimeZoneUtil::initLocalTime

Initialize a LocalDatetime result; see the primary initLocalTime overload.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
initLocalTime(
    LocalDatetime* result,
    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
localTimelocal date-time to interpret
timeZoneIdidentifier of the time zone for localTime
dstPolicydaylight-saving policy for interpreting localTime