[#BloombergLP-bdlt-LocalTimeOffset-setLocalTimeOffsetCallback]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/LocalTimeOffset.adoc[LocalTimeOffset]::setLocalTimeOffsetCallback
:relfileprefix: ../../../
:mrdocs:

Set the callback used to retrieve the local time offset&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;localtimeoffset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlt/LocalTimeOffset/LocalTimeOffsetCallback-08.adoc[LocalTimeOffset::LocalTimeOffsetCallback]
setLocalTimeOffsetCallback(xref:BloombergLP/bdlt/LocalTimeOffset/LocalTimeOffsetCallback-08.adoc[LocalTimeOffsetCallback] callback);
----

== Description

Set the specified `callback` as the function to be used to return a `bsls&colon;&colon;TimeInterval` value representing the difference between local time and UTC time at a specified UTC date and time&period; Return the previously installed `LocalTimeOffsetCallback` function&period; The behavior is undefined unless `0 !&equals; callback`&period;

== Return Value

the previously installed `LocalTimeOffsetCallback` function

== Parameters

[cols="1,4"]
|===
| Name| Description
| *callback*
| function used to retrieve the local time offset
|===


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