Subtraction assignment operators

Synopses

Declared in <bsls_timeinterval.h>

Subtract from this time interval the value of the specified rhs real number of seconds, and return a reference providing modifiable access to this object. The fractional part of rhs, if any, is rounded to the nearest whole number of nanoseconds before being subtracted from this object. The behavior is undefined unless rhs can be converted to a valid TimeInterval object whose seconds field is greater than LLONG_MIN, and the total number of seconds in the resulting time interval can be represented with a 64‐bit signed integer.

TimeInterval&
operator‐=(double rhs);

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.

Created with MrDocs