BloombergLP::baltzo::LocalTimePeriod::setUtcStartAndEndTime

Use the specified utcStartTime and utcEndTime to set the corresponding attributes of this object.

Synopsis

Declared in <baltzo_localtimeperiod.h>

void
setUtcStartAndEndTime(
    bdlt::Datetime const& utcStartTime,
    bdlt::Datetime const& utcEndTime);

Description

The behavior is undefined unless utcStartTime == utcEndTime, or if utcStartTime and utcEndTime are comparable (i.e., neither equals a default constructed bdlt::DateTime object) unless `utcStartTime < utcEndTime. (See the isValidUtcStartAndEndTime` method.)

Parameters

NameDescription
utcStartTimeUTC start time of the period
utcEndTimeUTC end time of the period