Load a bdlt::DatetimeTz result; see convertUtcToLocalTime for LocalDatetime.
Declared in <baltzo_timezoneutil.h>
static
int
convertUtcToLocalTime(
bdlt::DatetimeTz* result,
char const* targetTimeZoneId,
bdlt::Datetime const& utcTime);
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | receives the converted local date-time |
| targetTimeZoneId | identifier of the destination time zone |
| utcTime | UTC date-time to convert |