MobilityDB  1.0

◆ tsequence_value_at_timestamp1()

Datum tsequence_value_at_timestamp1 ( const TInstant inst1,
const TInstant inst2,
bool  linear,
TimestampTz  t 
)

Returns the base value of the segment of the temporal value at 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