[#BloombergLP-bdlt-DatetimeTz-2constructor-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/DatetimeTz.adoc[DatetimeTz]::DatetimeTz
:relfileprefix: ../../../
:mrdocs:

Create a `DatetimeTz` object having a local datetime value equal to the specified `localDatetime` and a time zone offset value from UTC equal to the specified `offset` (in minutes)&period; The behavior is undefined unless all of the specified values are within their valid ranges (see `isValid`)&period; Note that this method provides no validation, and it is the user&apos;s responsibility to ensure that `offset` represents a valid time zone and that `localDatetime` represents a valid datetime in that time zone&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
DatetimeTz(
    xref:BloombergLP/bdlt/Datetime.adoc[Datetime] const& localDatetime,
    int offset);
----


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