dtaddinv()

Adds an interval value to a datetime value.

Syntax

mint dtaddinv(dtime_t *d, intrvl_t *i, dtime_t *r);
  1. d is a pointer to the initialized datetime host variable. The variable must include all the fields present in the interval value.
  2. 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.
  3. r is a pointer to the result. The result inherits the qualifier of d.
  4. 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.