MobilityDB 1.1

◆ tsegment_at_timestamp()

TInstant * tsegment_at_timestamp ( const TInstant inst1,
const TInstant inst2,
bool  linear,
TimestampTz  t 
)

Restrict the segment of a temporal sequence to a timestamp.

Parameters
[in]inst1,inst2Temporal instants defining the segment
[in]linearTrue if linear interpolation
[in]tTimestamp
Precondition
The timestamp t satisfies inst1->t <= t <= inst2->t
Note
The function creates a new value that must be freed