Subtract the specified rhs time interval from this object.

Synopsis

Declared in <bdlt_datetimeinterval.h>

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

Description

Subtract from 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

Name

Description

rhs

time interval to subtract

Created with MrDocs