Tamper: String to Unix Timestamp¶
Plugin ID: eca_tamper_condition:strtotime
Available since: 1.0.0
This will take a string containing an English date format and convert it into a Unix Timestamp.
Fields¶
Comparison operator— config key:operator-
The available comparison operators like equals or less than.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:strtotime_operatorType:
select· Required: no · Default:equalAllowed values:
equal,beginswith,endswith,contains,greaterthan,lessthan,atmost,atleast,_eca_token,'' Comparison type— config key:type-
The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:strtotime_typeType:
select· Required: no · Default:valueAllowed values:
value,natural,numeric,lexical,count,_eca_token,'' Case sensitive comparison— config key:case-
Compare the values based on case sensitivity.
Type:
checkbox· Required: no · Default:false Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false Custom date format— config key:date_format-
The custom php date format string to parse the date with. This is optional and mainly useful when working with certain date formats. See the PHP manual for available options.
Type:
textfield· Required: no · Default: empty string Fallback to strtotime() if the date could not be parsed with the provided date format.— config key:fallback-
Type:
checkbox· Required: no · Default:false Data to be tampered— config key:left-
Type:
textarea· Required: yes · Default: empty string Data to compare with— config key:right-
Type:
textarea· Required: yes · Default: empty string