Class DateRangePredicateEvaluator

All Implemented Interfaces:
PredicateEvaluator
Direct Known Subclasses:
RelativeDateRangePredicateEvaluator

public class DateRangePredicateEvaluator extends RangePropertyPredicateEvaluator
Matches JCR DATE properties against a date/time interval. This uses the ISO8601 format for dates and times (YYYY-MM-DDTHH:mm:ss.SSSZ) and allows also partial representations (eg. YYYY-MM-DD). Alternatively, the timestamp can be provided as number of milliseconds since 1970 (UTC timezone, the unix time format).

You can ask for anything between two timestamps, anything newer or older than a given date, and also chose between inclusive and open intervals.

Supports facet extraction. Will provide buckets "today", "this week", "this month", "last 3 months", "this year", "last year" and "earlier than last year".

Does not support filtering.

Name:

daterange

Properties:

property
relative path to a DATE property, for example jcr:lastModified
lowerBound
lower date bound to check property for, for example 2014-10-01
lowerOperation
">" (newer, default) or ">=" (at or newer), applies to the lowerBound
upperBound
upper bound to check property for, for example 2014-10-01T12:15:00
upperOperation
"invalid input: '<'" (older, default) or "invalid input: '<'=" (at or older), applies to the upperBound
timeZone
ID of timezone to use when it's not given as ISO-8601 date string; default is the default timezone of the system
Since:
5.2