Load the local time offset from UTC for utcDatetime into result.
Declared in <baltzo_localtimeoffsetutil.h>
static
void
loadLocalTimeOffset(
int* result,
bdlt::Datetime const& utcDatetime);
Efficiently load to the specified result the offset of the local time from UTC for the specified utcDatetime. This function is thread-safe. The behavior is undefined unless the local time zone has been previously established by a call to the configure method. This method is thread-safe. Note that this function is no longer used as a callback function. It exists for backwards compatibility with code that called it directly, and is deprecated.
DEPRECATED: Use localTimeOffset instead.
| Name | Description |
|---|---|
| result | receives the local time offset in seconds |
| utcDatetime | UTC datetime for which to compute the offset |