clarencen/lshift — Issue #72: DateCategoryFunction should support sliding windows
Author: clarencen
Created: 2011-11-14 22:41:35+00:00
State: open

In order to not have keep on re-defining date based view ranges with absolute upper and lower bounds, it would nice to be able to specify a view in terms of a sliding window. Some use cases include:

* A rolling n hour/day/week/month/year window based on the current time;
* A rolling n hour/day/week/month/year window based on the last aligned hour/day/week/month/year;
* Specifying no upper bound indicates there is no limit;
* Specifying a logical upper bound to prevent including future dated entities from being included - the logical upper bound could be now()/start-of-{today, this-week, this-month, this-year}()/end-of-{today, this-week, this-month, this-year}();

An example of the XML might look like this:

@@@

@@@