dtsubinv()

Subtracts an interval value from a datetime value.

Syntax

mint dtsubinv(dtime_t *d, intrvl_t *i, dtime_t *r);
  1. d is a pointer to an initialized datetime host variable. This must include all the fields present in the interval value i.
  2. i is a pointer to an initialized interval host variable.
  3. r is a pointer to the datetime host variable that contains the result.

Returns

Table 1. Return codes
Code Description
0 The subtraction was successful.
<0 The subtraction failed.