tf_duration/4—calculate the duration of all active intervals of a time frame during a specified time period
The syntax for tf_duration/4
is as follows:
tf_duration($TIMEFRAME,$START,$END,$DURATION)
$DURATION=tf_duration($TIMeFRAME,$START,$END)
tf_duration/4 arguments
Argument | Mode | Type | Description |
---|---|---|---|
| Input | OBJECT | Specifies the time frame object |
| Input | INTEGER | Specifies the start of the period during which active interval duration is to be calculated |
| Input | INTEGER | Specifies the end of the period during which active interval duration is to be calculated |
| Output | INTEGER | Total active interval duration over the specified period |
Use the tf_duration/4
to calculate the total duration in $DURATION
, of all active intervals of time frame $TIMEFRAME
over the period starting at $START
and ending at $END
.
tf_duration/4 example
$DURATION = tf_duration($TF,$TM0,$TM1);
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.