SetDeviceLastChange

Purpose

This function sets the last change time of a device.

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".

Parameter: date-time
Type: date
Description: This is the date and time to set the last change to.

 

Returns

Return value: none
 

Example

hs.SetDeviceLastChange "A1", now
hs.SetDeviceLastChange "A1", CDate("4:00 PM")