BloombergLP::bdlt::DatetimeInterval::operator+=

Add the specified rhs time interval to this object.

Synopsis

Declared in <bdlt_datetimeinterval.h>

DatetimeInterval&
operator+=(DatetimeInterval const& rhs);

Description

Add to this time interval the value of the specified rhs time interval, and return a reference providing modifiable access to this object. The behavior is undefined unless the resulting time interval value is valid (i.e., the days field must not overflow a 32-bit integer).

Return Value

a reference providing modifiable access to this object

Parameters

NameDescription
rhstime interval to add