Link to this page
Print this page
Parent topic
:
C API functions
C-Extensions
/
C API functions
dtsub()
Subtracts one datetime value from another.
Syntax
mint dtsub(dtime_t *
d1
, dtime_t *
d2
, intrvl_t *
i
);
d1
is a pointer to an initialized datetime host variable.
d2
is a pointer to an initialized datetime host variable.
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.