set_timer_at/4—set a timer on an event object that will expire at a  specified time represented by a text string


Note

This primitive cannot be used in refine, filter, regulate, or propagate rules.

The syntax for set_timer_at/4 is as follows:

set_timer_at($OBJECT,$STR,$FORMAT,$INFO)

set_timer_at/4 arguments 

Argument

Mode

Type

Description

$OBJECT

Input

OBJECT

Specifies the event object

$STR

Input

STRING

Specifies the time stamp in textual representation at which the timer will expire

$FORMAT

Input

STRING

Specifies the format for the time stamp $STR

$INFO

Input

STRING

Specifies the information item as timer_info

Use the set_timer_at/4 to set a timer on event $OBJECT that will expire at time stamp with textual representation $STR in format $FORMAT, and to trigger a timer rule with timer information matching $INFO.

The value of $INFO will be substituted for the timer_info in matching timer rules when the timer expires.

This is the same as:

set_timer_at($OBJ,str_to_time_stamp($STR,$FORMAT),$INFO) 

set_timer_at/4 example

set_timer_at($E,$DATETIME,'%Y%m%d %H%M%S',EventExpired);

The variable $DATETIME must contain a time indication similar to 20070209 153010.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*