[#BloombergLP-baltzo-LocalTimeOffsetUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::LocalTimeOffsetUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for a `bdlt&colon;&colon;LocalTimeOffset` local time offset callback, and functions that manage the timezone information reported by that callback&period; All public methods are *thread&hyphen;safe*&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;localtimeoffsetutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct LocalTimeOffsetUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/configure-0a.adoc[`configure`] 
| `configure` overloads
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/loadLocalTimeOffset.adoc[`loadLocalTimeOffset`] 
| Efficiently load to the specified `result` the offset of the local time from UTC for the specified `utcDatetime`&period; This function is thread&hyphen;safe&period; The behavior is undefined unless the local time zone has been previously established by a call to the `configure` method&period; This method _is_ thread&hyphen;safe&period; Note that this function is no longer used as a callback function&period; It exisis for backwards compatibility with code that called it directly, and is deprecated&period;
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/loadLocalTimePeriod.adoc[`loadLocalTimePeriod`] 
| Load to the specified `localTimePeriod` the local time period information currently used by the `localTimeOffset` method&period; That information is updated when `localTimeOffset` is called with a `utcDatetime` outside the range `localTimePeriod()&period;utcStartTime()` (inclusive) `localTimePeriod()&period;utcEndTime()` (exclusive)&period; This method is _not_ thread&hyphen;safe&period; The behavior is undefined if this method is invoked before the successful invocation of a `configure` method&period;
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/loadTimezone-06.adoc[`loadTimezone`] 
| `loadTimezone` overloads
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/localTimeOffset.adoc[`localTimeOffset`] 
| Return the offset of the local time from UTC for the specified `utcDatetime`&period; This function is thread&hyphen;safe&period; The behavior is undefined unless the local time zone has been previously established by a call to the `configure` method&period; This method _is_ thread&hyphen;safe&period;
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/setLoadLocalTimeOffsetCallback.adoc[`setLoadLocalTimeOffsetCallback`] 
| Set `localTimeOffset` as the local time offset callback of `bdlt&colon;&colon;CurrentTime`&period; Return the previously installed callback&period; This method is _not_ thread&hyphen;safe&period;
| xref:BloombergLP/baltzo/LocalTimeOffsetUtil/updateCount.adoc[`updateCount`] 
| Return the number of successful updates of the local time period information since the start of the process&period; This count is incremented on calls to any of the `setTimeZone` methods and when `loadLocalTimePeriod` is called with a `utcDatetime` outside the range of the current local time period information&period; This method _is_ thread&hyphen;safe&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
