dtextend()

Copies a datetime value by adding or dropping fields based on a qualifier.

Syntax

mint dtextend(dtime_t *id, dtime_t *od);
  1. id is a pointer to the datetime variable to extend.
  2. od is a pointer to the datetime variable containing a valid qualifier to use for the extension.

Returns

Table 1. Return codes
Code Description
0 The operation was successful.
<0 The operation failed.
-1268 A parameter contains an invalid datetime qualifier

Usage

The function makes a copy a datetime value id to the datetime value od, adding or dropping fields based on the qualifier of od.