[#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`. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. If `timeZoneId` is passed as a null pointer, it is treated as an empty string. == Synopsis Declared in `<baltzo_localdatetime.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- LocalDatetime( xref:BloombergLP/bdlt/DatetimeTz.adoc[bdlt::DatetimeTz] const& datetimeTz, std::string_view const& timeZoneId, xref:BloombergLP/baltzo/LocalDatetime/allocator_type.adoc[allocator_type] const& allocator = allocator_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]#