[#BloombergLP-bdlt-TimeTz-setTimeTz]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/TimeTz.adoc[TimeTz]::setTimeTz
:relfileprefix: ../../../
:mrdocs:

Set the local time and time zone offset attributes of this object to the specified `localTime` and `offset` values respectively&period; The behavior is undefined unless `offset` is in the range `( &hyphen;1440 &period;&period; 1440 )`&period; Note that this method provides no validation, and it is the user&apos;s responsibility to assure the consistency of the resulting value&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setTimeTz(
    xref:BloombergLP/bdlt/Time.adoc[Time] const& localTime,
    int offset);
----


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