MobilityDB 1.1

◆ tinstant_cmp()

int tinstant_cmp ( const TInstant inst1,
const TInstant inst2 
)

Return -1, 0, or 1 depending on whether the first temporal instant is less than, equal, or greater than the second one.

Precondition
The arguments are of the same base type
Note
The internal B-tree comparator is not used to increase efficiency.
This function supposes for optimization purposes that the flags of two temporal instants of the same base type are equal. This hypothesis may change in the future and the function must be adapted accordingly.
SQL Function:
tbool_cmp(), tint_cmp(), tfloat_cmp(), ttext_cmp(), etc.