Adds an interval value to a datetime value.
Syntax
mint dtaddinv(dtime_t *d, intrvl_t *i, dtime_t *r);
- d is a pointer to the initialized datetime host variable. The variable must include
all the fields present in the interval value.
- i is a pointer to the initialized interval host variable. The interval value must be
in the year to month or the day to fraction(5) range.
- r is a pointer to the result. The result inherits the qualifier of d.
- Failure to initialize the host variables can produce unpredictable results.
Returns
Table 1. Return codes
Code |
Description |
0 |
The addition was successful. |
<0 |
The addition failed. |