BloombergLP::baltzo::TimeZoneUtil::convertUtcToLocalTime

Load a bdlt::DatetimeTz result; see convertUtcToLocalTime for LocalDatetime.

Synopsis

Declared in <baltzo_timezoneutil.h>

static
int
convertUtcToLocalTime(
    bdlt::DatetimeTz* result,
    char const* targetTimeZoneId,
    bdlt::Datetime const& utcTime);

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