BloombergLP::baltzo::TimeZoneUtil::convertLocalToLocalTime

Convert using a bdlt::DatetimeTz source; see the primary convertLocalToLocalTime overload.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
convertLocalToLocalTime(
    LocalDatetime* result,
    char const* targetTimeZoneId,
    bdlt::DatetimeTz const& srcTime);

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
srcTimesource local date-time to convert