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