BloombergLP::bsls::TimeInterval::operator-=

Subtract the specified rhs time interval from this object.

Synopsis

Declared in <bsls_timeinterval.h>

TimeInterval&
operator-=(TimeInterval 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 LLONG_MIN != rhs.seconds(), and the total number of seconds in the resulting time interval can be represented with a 64-bit signed integer.

Return Value

a reference providing modifiable access to this object

Parameters

NameDescription
rhsright-hand time interval