Create a LocalTimePeriod object having the specified descriptor, utcStartTime, and utcEndTime attribute values.
Declared in <baltzo_localtimeperiod.h>
LocalTimePeriod(
LocalTimeDescriptor const& descriptor,
bdlt::Datetime const& utcStartTime,
bdlt::Datetime const& utcEndTime,
allocator_type const& allocator = allocator_type());
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.)
| 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 |