tf_next_interval/3—obtain the start and end time of the next active  interval of a time frame at a specified time


The syntax for tf_next_interval/3 is as follows:

tf_next_interval($TIMEFRAME,$TIME,$INTV)
$INTV=tf_next_interval($TIMEFRAME,$TIME)

tf_next_interval/3 arguments 

Argument

Mode

Type

Description

$TIMEFRAME

Input

OBJECT

Specifies the time frame object

$TIME

Input

INTEGER

Specifies the time for the active interval

$INTV

Output

LIST_OF INTEGER

Start and end time of the next active interval at specified time

Use the tf_next_interval/3 to obtain the start and end time of the next active interval at $TIME of time frame $TIMEFRAME in $END.

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 next active time frame at the given time.

tf_next_interval/3 example

tf_next_interval($TF,$TM,[$START,$END]);

 

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