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

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

Created with MrDocs