tf_prev_end/3—obtain the end time of the previous active interval of a time frame at a given time
The syntax for tf_prev_end/3
is as follows:
tf_prev_end($TIMEFRAME,$TIME,$END)
$END=tf_prev_end($TIMEFRAME,$TIME)
tf_prev_end/3 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | OBJECT | Specifies the time frame object |
| Input | INTEGER | Specifies the time for the active interval |
| Output | INTEGER | End time of previous active interval at the specified time |
Use the tf_prev_end/3
to obtain the end time of the previous active interval at $TIME
, of time frame $TIMEFRAME
in $END
.
A 0 value is returned if there is no previous active time frame at the given time.
tf_prev_end/3 example
$END = tf_prev_end($TF,$TM);
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.