tf_duration/3—calculate the duration of all active intervals of a time frame from a specified start time to the current time
The syntax for tf_duration/3 is as follows:
tf_duration($TIMEFRAME,$START,$DURATION)
$DURATION=tf_duration($TIMEFRAME,$START)
$DURATION=tf_duration($TIMEFRAME,$START)
tf_duration/3 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 |
$DURATION | Output | INTEGER | Total active interval duration from the time specified in $START until the current time |
Use the tf_duration/3 to calculate the total duration in $DURATION of all active intervals of time frame $TIMEFRAME over the period starting at $START and ending at the current time.
tf_duration/3 example
$DURATION = tf_duration($TF,$TM0);
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*