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

Provide the default local&hyphen;time&hyphen;offset callback implementation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bsls/TimeInterval.adoc[bsls::TimeInterval]
localTimeOffsetDefault(xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& utcDatetime);
----

== Description

Return a `bsls&colon;&colon;TimeInterval` value representing the difference between local time and UTC time at the specified `utcDatetime`&period; Note that the local time zone is determined by the `TZ` environment variable in the same manner as the `localtime` POSIX function&period;

== Return Value

the difference between local time and UTC at `utcDatetime`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *utcDatetime*
| UTC date and time at which to compute the offset
|===


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