tf_current_end/3—obtain the end time of the active interval of a time  frame at a specified time


The syntax for tf_current_end/3 is as follows:

tf_current_end($TIMEFRAME,$TIME,$END)
$END=tf_current_end($TIMEFRAME,$TIME)

tf_current_end/3 arguments

Argument

Mode

Type

Description

$TIMEFRAME

Input

OBJECT

Specifies the time frame object

$TIME

Input

INTEGER

Specifies the time for the active interval

$END

Output

INTEGER

End time of active interval at the given time

Use the tf_current_end/3 to obtain the end time of the active interval at $TIME of time frame $TIMEFRAME in $END.

A 0 value is returned if the indicated time frame is not active at the given time.

tf_current_end/3 example

$END = tf_current_end($TF,$TM);

 

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