[#BloombergLP-bdlt-DatetimeTz-setDatetimeTz] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]::setDatetimeTz :relfileprefix: ../../../ :mrdocs: Set the local datetime and the time zone offset of this object to the specified `localDatetime` and `offset` values respectively. The behavior is undefined unless all of the specified values are within their valid ranges (see `isValid`). 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_datetimetz.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setDatetimeTz( xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& localDatetime, int offset); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#