tf_prev_interval/2—obtain the start and end time of the previous active interval of a time frame
The syntax for tf_prev_interval/2
is as follows:
tf_prev_interval($TIMEFRAME,$INTV)
$INTV=tf_prev_interval($TIMEFRAME)
tf_prev_interval/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | OBJECT | Specifies the time frame object |
| Output | LIST_OF INTEGER | Start and end time of the previous active interval |
Use the tf_prev_interval/2
to obtain the start and end time of the previous active interval of time frame $TIMEFRAME
in $INTV
.
Argument $INTV
of the primitive, has to be specified as a list of two variables.
A [0,0] value is returned if there is no previous active time frame.
tf_prev_interval/2 example
tf_prev_interval($TF,[$START,$END]);
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.