BloombergLP::baltzo::LocalTimePeriod::LocalTimePeriod

Create a LocalTimePeriod object having the specified descriptor, utcStartTime, and utcEndTime attribute values.

Synopsis

Declared in <baltzo_localtimeperiod.h>

LocalTimePeriod(
    LocalTimeDescriptor const& descriptor,
    bdlt::Datetime const& utcStartTime,
    bdlt::Datetime const& utcEndTime,
    allocator_type const& allocator = allocator_type());

Description

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.)

Parameters

NameDescription
descriptorlocal time descriptor for the period
utcStartTimeUTC start time of the period
utcEndTimeUTC end time of the period
allocatorthe allocator used to supply memory