Compare to Relative Date

The Compare to Relative Date criterion is available only when creating a criterion based on a date or date/time attribute.

It allows you to create criteria that compare a date interval against the time at execution – for example, ‘[attribute] is 1 month before the current time’ or ‘[attribute] is within 5 years of the current time’.

The following criterion properties must be defined:

       Operator: defined using a drop-down list that contains the following values:

Is equal to

Does not equal

Is within

Is less than

Is less than or equal to

Is more than

Is more than or equal to

Is

If any value other than ‘Is within’ or ‘Is’  is selected, the label ‘the current time’ is displayed to the right hand side of the drop-down.

       If ‘Is within’ is selected, you must define the following additional properties:

[value]: a mandatory field that may be populated only with an integer value.

[unit of time]: a drop-down list containing the values:

§ Seconds (the default; not supported when querying a Hive database)

§ minutes

§ hours

§ days

§ days (ignoring time): available at datetime attributes only

§ months and years

[preposition]: a drop-down list containing the values of:

§ before

§ after

The label ‘the current time’ is displayed to the right hand side of [preposition]

 

       If ‘Is’ is selected, you must specify a value at an additional property:

Graphical user interface, text, application, chat or text message

Description automatically generated

[unit of time]: a drop-down list exposing the following values:

Graphical user interface, application

Description automatically generated

If set, values are calculated using the time zone specified in system configuration setting RuleTimezoneOverride.  If blank, the server time zone is used.