DeviceTime

Purpose

This function returns the time in minutes since the device status last changed.  This can be used to see how long a device has been ON or OFF.  The time is in reference to when the computer started.  For a more accurate value, use the DeviceLastChange function instead.

Parameters

Parameter: device
Type: string
Description: This is the house code and unit code or device code of the device, such as "A1" or "q17".

Returns

Return value: device time
Type: long
Description: This is the amount of time since the last device status change.