MobilityDB 1.3
Loading...
Searching...
No Matches

◆ span_num_bins()

int span_num_bins ( const Span s,
Datum  size,
Datum  origin,
Datum start_bin,
Datum end_bin 
)

Get the time bins of a temporal value.

Parameters
[in]sSpan to tile
[in]sizeSize of the bins
[in]originTime origin of the tiles
[out]start_bin,end_binValues of the start and end bins
Returns
Number of bins
Precondition
When called for dates, this function assumes that the duration interval which the calling function translated into the argument size does NOT have a month component