Add the specified number of days if the result is valid.
Declared in <bdlt_datetimeinterval.h>
int
addDaysIfValid(int days);
Add to this time interval the specified number of days. 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 |
|---|---|
| days | days to add |