Subtract a real number of seconds from this time interval.
Synopsis
Declared in <bsls_timeinterval.h>
TimeInterval&
operator‐=(double rhs);
Description
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.
Return Value
a reference providing modifiable access to this object
Parameters
Name |
Description |
rhs |
right‐hand seconds as |
Created with MrDocs