tf_prev_start/3—obtain the start time of the previous active interval of a time frame at a given time

The syntax for tf_prev_start/3 is as follows:

tf_prev_start($TIMEFRAME,$TIME,$START)
$START=tf_prev_start($TIMEFRAME,$TIME)

tf_prev_start/3 arguments 

Argument

Mode

Type

Description

$TIMEFRAME

Input

OBJECT

Specifies the time frame object

$TIME

Input

INTEGER

Specifies the time for the active interval

$START

Output

INTEGER

Start time of previous active interval at the specified time

Use the tf_prev_start/3 to obtain the start time of the previous active interval at $TIME, of time frame $TIMEFRAME in $START.

A 0 value is returned if there is no previous active time frame at the given time.

tf_prev_start/3 example

$START = tf_prev_start($TF,$TM);
Was this page helpful? Yes No Submitting... Thank you

Comments