MobilityDB 1.1

◆ tnumber_arithop_tp_at_timestamp1()

static bool tnumber_arithop_tp_at_timestamp1 ( const TInstant start1,
const TInstant end1,
const TInstant start2,
const TInstant end2,
TimestampTz t 
)
static

Find the single timestamptz at which the operation of two temporal number segments is at a local minimum/maximum.

The function supposes that the instants are synchronized, that is, start1->t = start2->t and end1->t = end2->t. The function only return an intersection at the middle, that is, it returns false if the timestamp found is not at a bound.

Note
This function is called only when both sequences are linear.