Convert to a bdlt::DatetimeTz result; see the primary convertLocalToLocalTime overload with source time zone.
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);
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 |
| srcTime | local date-time in the source time zone |
| srcTimeZoneId | identifier of the source time zone |
| dstPolicy | daylight-saving policy for interpreting srcTime |