BloombergLP::baltzo::TimeZoneUtil::convertLocalToLocalTime

Convert to a bdlt::DatetimeTz result; see the primary convertLocalToLocalTime overload with source time zone.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
convertLocalToLocalTime(
    bdlt::DatetimeTz* result,
    char const* targetTimeZoneId,
    bdlt::Datetime const& srcTime,
    char const* srcTimeZoneId,
    DstPolicy::Enum dstPolicy = DstPolicy::e_UNSPECIFIED);

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
resultreceives the converted local date-time
targetTimeZoneIdidentifier of the destination time zone
srcTimelocal date-time in the source time zone
srcTimeZoneIdidentifier of the source time zone
dstPolicydaylight-saving policy for interpreting srcTime