[#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 `<baltzo_localtimeperiod.h>` Create a `LocalTimePeriod` object having the (default) attribute values: ` descriptor() == LocalTimeDescriptor() utcStartTime() == bdlt::Datetime() utcEndTime() == bdlt::Datetime() ` Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-02d.adoc[LocalTimePeriod](); ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-02d.adoc[_» more..._]# Create a `LocalTimePeriod` object having the same value and the same allocator as the specified `original` object. The value of `original` becomes unspecified but valid, and its allocator remains unchanged. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-03.adoc[LocalTimePeriod](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<LocalTimePeriod>] original) noexcept; ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-03.adoc[_» more..._]# Create a `LocalTimePeriod` object having default attribute values, using the specified `allocator` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-02a.adoc[LocalTimePeriod](xref:BloombergLP/baltzo/LocalTimePeriod/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-02a.adoc[_» more..._]# Create a `LocalTimePeriod` object having the same value as the specified `original` object, using the specified `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory. The allocator of `original` remains unchanged. 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; otherwise `original` is unchanged and an exception may be thrown. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-0c.adoc[LocalTimePeriod]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<LocalTimePeriod>] original, xref:BloombergLP/baltzo/LocalTimePeriod/allocator_type.adoc[allocator_type] const& allocator); ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-0c.adoc[_» more..._]# Create a `LocalTimePeriod` object with the same value as the specified `original` object. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-04.adoc[_» more..._]# Create a `LocalTimePeriod` object having the specified `descriptor`, `utcStartTime`, and `utcEndTime` attribute values. Optionally specify an `allocator` (e.g., the address of a `bslma::Allocator` object) to supply memory; otherwise, the default allocator is used. The behavior is undefined unless `utcStartTime == utcEndTime`, or if `utcStartTime` and `utcEndTime` are comparable (i.e., neither equals the a default constructed `bdlt::DateTime` object) unless `utcStartTime < utcEndTime`. (See the `isValidUtcStartAndEndTime` method.) [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_type] const& allocator = allocator_type()); ---- [.small]#xref:BloombergLP/baltzo/LocalTimePeriod/2constructor-0a.adoc[_» more..._]# == 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]#