Set this interval to the specified total milliseconds if valid.
Declared in <bdlt_datetimeinterval.h>
int
setTotalMillisecondsIfValid(bsls::Types::Int64 milliseconds);
Set the overall value of this object to indicate the specified number of milliseconds. Return 0 if the resulting time interval value is valid (i.e., the days field must not overflow an int) and a non-zero value (with no effect) otherwise.
0 on success, and a non-zero value (with no effect) otherwise
| Name | Description |
|---|---|
| milliseconds | total milliseconds |