Add the specified number of seconds to this time interval.
Synopsis
Declared in <bsls_timeinterval.h>
constexpr
TimeInterval&
addSeconds(bsls::Types::Int64 seconds);
Description
Add to this time interval the specified integral number of seconds, and return a reference providing modifiable access to this object. The behavior is undefined unless the total number of seconds in the resulting time interval can be represented with a 64‐bit signed integer. Note that seconds may be negative.
Return Value
a reference providing modifiable access to this object
Parameters
Name |
Description |
seconds |
seconds to add |
Created with MrDocs