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

Create a `LocalTimePeriod` object having the specified `descriptor`, `utcStartTime`, and `utcEndTime` attribute values&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
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());
----

== Description

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 `utcStartTime &lt; utcEndTime`&period; (See the `isValidUtcStartAndEndTime` method&period;)

== Parameters

[cols="1,4"]
|===
| Name| Description
| *descriptor*
| local time descriptor for the period
| *utcStartTime*
| UTC start time of the period
| *utcEndTime*
| UTC end time of the period
| *allocator*
| the allocator used to supply memory
|===


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