MINUTES

Parameters

OrderNameTypeDesc
1timeframesTime ListThe time frames

Returns

Places a const on the stack.

Description

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.

Example

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

See Also