dtsub()

Subtracts one datetime value from another.

Syntax

mint dtsub(dtime_t *d1, dtime_t *d2, intrvl_t *i);
  1. d1 is a pointer to an initialized datetime host variable.
  2. d2 is a pointer to an initialized datetime host variable.
  3. i is a pointer to the interval host variable that contains the result.

Returns

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