Rules Date Check

Categories

RDF

Component ID

2471967

Component name

Rules Date Check

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

What it does

This is a small Rules module providing some date and time comparisons and formatting.

Why it exists

This module provides the ability to compare the current time to a given hour or day, for use in building conditions like "if it is after 6am on Tuesday..." Since multiple conditions can be applied, conditions like "before 9am between Tuesday and Thursday" can be created.

It is particularly useful for cron-triggered rules.

Rules scheduler + components can also be used to run rules at a certain time, but these rules configurations may be more helpful in cases such as:

  1. Adding a time/date check to an existing, non-component rule
  2. Setting up a complex or chained set of time/date conditions (beyond "run again one week from today")

Conditions

Hour of Day

(e.g. "it is 10am")

Day of Week

(e.g. "it is after Friday and before Monday")

Actions

Date to formatted text

Converts an item of 'date' type to a string of formatted text.
Example case: clearing a views URL from cache based on a date field from an updated node, as in "/blog/archive/2015-01".

Requirements

  • Rules module