Load a LocalDatetime UTC result; see the primary convertLocalToUtc overload.
Declared in <baltzo_timezoneutil.h>
static
int
convertLocalToUtc(
LocalDatetime* result,
bdlt::Datetime const& localTime,
char const* timeZoneId,
DstPolicy::Enum dstPolicy = DstPolicy::e_UNSPECIFIED);
0 on success, and a non-zero value otherwise
| Name | Description |
|---|---|
| result | receives the corresponding UTC date-time |
| localTime | local date-time to convert |
| timeZoneId | identifier of the time zone for localTime |
| dstPolicy | daylight-saving policy for interpreting localTime |