| Order | Name | Type | Desc |
|---|---|---|---|
| 1 | timeframes | Time List | The time frames |
Places a const on the stack.
This function calculates the total amount of time represented by a time list, such as those created with the WHEN function.
The time is returned in minutes. It may include many decimal points.
Let's assume you have a power meter on your refrigerator, and you'd like to know how long you were consuming more than 2.5A of power.
We can do that with the following query…
'Fridge' ASSET 'Current' PROPERTY VALUES { “range”: “24 hours”, “method”: “raw” } GETHISTORY [ 2.5 GREATER ] WHEN MINUTES