Subtracts an interval value from a datetime value.
Syntax
mint dtsubinv(dtime_t *d, intrvl_t *i, dtime_t *r);
- d is a pointer to an initialized datetime host variable. This must include all the
fields present in the interval value i.
- i is a pointer to an initialized interval host variable.
- 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. |