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)
$DURATION=tf_duration($TIMeFRAME,$START,$END)
tf_duration/4 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$TIMEFRAME | Input | OBJECT | Specifies the time frame object |
$START | Input | INTEGER | Specifies the start of the period during which active interval duration is to be calculated |
$END | Input | INTEGER | Specifies the end of the period during which active interval duration is to be calculated |
$DURATION | 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);
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*