NetLinx Keywords Help wrote: TIME This system variable holds the current time as a string in the form "hh:mm:ss". The time is represented in 24-hour format.
NetLinx Keywords Help wrote: TIME_TO_HOUR Returns an integer representing the hour portion of a time string.
DEFINE_PROGRAM IF (TIME == '23:59:59') { // do something }
Colzie wrote: » An easy way to trigger the event is to use DEFINE_PROGRAMDEFINE_PROGRAM IF (TIME == '23:59:59') { // do something }
if(time=='23:59:59 and do_it_flag=0) { do_it_flag=1 // do something wait 15 { do_it_flag=0 } }
Comments
TIME_TO_HOUR (TIME) will give you the current hour.
Another thing to remember that it will be 23:59:59 for several thousand program cycles.
It might be a good thing to put a trap in it as well.