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

◆ date_bin_start()

static DateADT date_bin_start ( DateADT  d,
int32  ndays,
DateADT  origin 
)
static

To bin by day we get the year and month of a date and convert that to the nth month since origin.

This allows us to treat month bining similar to int bining. During this process we ignore the day component and therefore only support bining by full months.