Add a real number of seconds to this time interval.

Synopsis

Declared in <bsls_timeinterval.h>

TimeInterval&
operator+=(double rhs);

Description

Add to 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 added to this object. The behavior is undefined unless rhs can be converted to a valid TimeInterval object, 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 double

Created with MrDocs