MobilityDB  1.0

◆ tsequence_at_timestamp1()

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

Restricts the segment of a temporal value to the timestamp.

Parameters
[in]inst1,inst2Temporal values defining the segment
[in]linearTrue when the segment has 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