You are here

constant RULES_DATE_REGEX_LOOSE in Rules 6

@file Rules engine module

2 uses of RULES_DATE_REGEX_LOOSE
rules_data_type_date::check_value in rules/modules/rules.rules.inc
Checks the value of your data type. E.g. the number data type uses this to make sure the value is a number.
rules_gmstrtotime in rules/rules.module
Convert a time string to a GMT (UTC) unix timestamp

File

rules/rules.module, line 7
Rules engine module

Code

define('RULES_DATE_REGEX_LOOSE', '/^(\\d{4})-?(\\d{2})-?(\\d{2})([T\\s]?(\\d{2}):?(\\d{2}):?(\\d{2})?)?$/');