MobilityDB 1.1

◆ timestamptz_bucket()

TimestampTz timestamptz_bucket ( TimestampTz  t,
const Interval duration,
TimestampTz  origin 
)

Return the initial timestamp of the bucket in which a timestamp falls.

Parameters
[in]tInput timestamp
[in]durationInterval defining the size of the buckets
[in]originOrigin of the buckets