Page 1 of 1

Format for time code to add offset to sunrise

Posted: Mon Jan 05, 2009 3:34 pm
by tuggybear
Trying to add an offset to sunrise/ sunset and having errors in script.

Thnks in advance

Re: Format for time code to add offset to sunrise

Posted: Mon Jan 05, 2009 3:48 pm
by Richard Naninck

Code: Select all

Option Explicit

Dim OffsetTime
Dim CloseTime

OffsetTime = GetPropertyValue ("Your Device.Offset Time")

SetPropertyValue "Your Device.Close Time", "SUNSET_DATE_AND_TIME + Days=0, Hours=00, Minutes=" + OffsetTime + ", Seconds=00"