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

Constructors

== Synopses

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

Create a `LocalTimePeriod` object having the (default) attribute values&colon; &grave; descriptor() &equals;&equals; LocalTimeDescriptor() utcStartTime() &equals;&equals; bdlt&colon;&colon;Datetime() utcEndTime() &equals;&equals; bdlt&colon;&colon;Datetime() &grave; 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;


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

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

Create a `LocalTimePeriod` object having the same value and the same allocator as the specified `original` object&period; The value of `original` becomes unspecified but valid, and its allocator remains unchanged&period;


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

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

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


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

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

Create a `LocalTimePeriod` object having the same value as the specified `original` object, using the specified `allocator` (e&period;g&period;, the address of a `bslma&colon;&colon;Allocator` object) to supply memory&period; The allocator of `original` remains unchanged&period; If `original` and the newly created object have the same allocator then the value of `original` becomes unspecified but valid, and no exceptions will be thrown&semi; otherwise `original` is unchanged and an exception may be thrown&period;


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

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

Create a `LocalTimePeriod` object with the same value as the specified `original` object&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;


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

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

Create a `LocalTimePeriod` object having the specified `descriptor`, `utcStartTime`, and `utcEndTime` attribute values&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; The behavior is undefined unless `utcStartTime &equals;&equals; utcEndTime`, or if `utcStartTime` and `utcEndTime` are comparable (i&period;e&period;, neither equals the a default constructed `bdlt&colon;&colon;DateTime` object) unless &grave;utcStartTime &lt; utcEndTime`&period; (See the `isValidUtcStartAndEndTime&grave; method&period;)


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-0a.adoc[LocalTimePeriod](
    xref:BloombergLP/baltzo/LocalTimeDescriptor.adoc[LocalTimeDescriptor] const& descriptor,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcStartTime,
    xref:BloombergLP/bdlt/Datetime.adoc[bdlt::Datetime] const& utcEndTime,
    xref:BloombergLP/baltzo/LocalTimePeriod/allocator_type.adoc[allocator&lowbar;type] const& allocator = allocator&lowbar;type());
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| the object whose value is copied
| *allocator*
| the allocator used to supply memory
|===


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