MobilityDB 1.1

◆ tnumberseq_disc_time_split()

static TSequence ** tnumberseq_disc_time_split ( const TSequence seq,
TimestampTz  start,
int64  tunits,
int  count,
TimestampTz **  buckets,
int *  newcount 
)
static

Split a temporal value into an array of fragments according to time buckets.

Parameters
[in]seqTemporal value
[in]startStart timestamp of the buckets
[in]tunitsSize of the time buckets in PostgreSQL time units
[in]countNumber of buckets
[out]bucketsStart timestamp of the buckets containing a fragment
[out]newcountNumber of values in the output array