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

Constructors

== Synopses

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

Create a `LocalDatetime` object having the (default) attribute values&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalDatetime/2constructor-0e.adoc[LocalDatetime]();
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object having the same value and the same allocator as the specified `original` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalDatetime/2constructor-02.adoc[LocalDatetime](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;LocalDatetime&gt;] original) noexcept;
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-02.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object having default attribute values, using the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/baltzo/LocalDatetime/2constructor-01.adoc[LocalDatetime](xref:BloombergLP/baltzo/LocalDatetime/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object having the same value as the specified `original` object, using the specified `allocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalDatetime/2constructor-0a.adoc[LocalDatetime](
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;LocalDatetime&gt;] original,
    xref:BloombergLP/baltzo/LocalDatetime/allocator_type.adoc[allocator&lowbar;type] const& allocator);
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-0a.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object having the same value as the specified `original` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalDatetime/2constructor-03.adoc[LocalDatetime](
    xref:BloombergLP/baltzo/LocalDatetime.adoc[LocalDatetime] const& original,
    xref:BloombergLP/baltzo/LocalDatetime/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-03.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object with attribute values set from the specified `datetimeTz` and `timeZoneId`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalDatetime/2constructor-062.adoc[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());
----

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-062.adoc[_» more&period;&period;&period;_]#

Create a `LocalDatetime` object with attribute values set from the specified `datetimeTz` and `timeZoneId`, using the specified `allocator` to supply memory&period;


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

[.small]#xref:BloombergLP/baltzo/LocalDatetime/2constructor-08.adoc[_» more&period;&period;&period;_]#

== Parameters

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


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