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