[#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. The behavior is undefined unless `offset` is in the range `( ‐1440 .. 1440 )`. Note that this method provides no validation, and it is the user's responsibility to assure the consistency of the resulting value. == Synopsis Declared in `<bdlt_timetz.h>` [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]#