MobilityDB  1.0

◆ timestampset_make()

TimestampSet* timestampset_make ( const TimestampTz *  times,
int  count 
)

Construct a timestamp set from an array of timestamps.

For example, the memory structure of a timestamp set with 3 timestamps is as follows

--------------------------------------------------------------------------
( TimestampSet | ( bbox )_X | Timestamp_0 | Timestamp_1 | Timestamp_2)_X |
--------------------------------------------------------------------------

where the X are unused bytes added for double padding, and bbox is the bounding box which is a period.

Parameters
[in]timesArray of timestamps
[in]countNumber of elements in the array