[#BloombergLP-baltzo-LocalDatetime-2constructor-062]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/baltzo.adoc[baltzo]::xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime]::LocalDatetime
:relfileprefix: ../../../
:mrdocs:

Create a `LocalDatetime` object with attribute values set from the specified `datetimeTz` and `timeZoneId`&period; Optionally specify an `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&semi; otherwise, the default allocator is used&period; If `timeZoneId` is passed as a null pointer, it is treated as an empty string&period;

== Synopsis

Declared in `&lt;baltzo&lowbar;localdatetime&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
LocalDatetime(
    xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& datetimeTz,
    std::string&lowbar;view const& timeZoneId,
    xref:BloombergLP/baltzo/LocalDatetime/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *datetimeTz*
| the datetime and UTC offset
| *timeZoneId*
| the time zone identifier
| *allocator*
| the allocator used to supply memory
|===


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