set_timer_at/4—set a timer on an event object that will expire at a specified time represented by a text string
The syntax for set_timer_at/4 is as follows:
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/4 example
The variable $DATETIME must contain a time indication similar to 20070209 153010.