PDA

View Full Version : comparing time values


coppo
21 Apr 06, 12:59 PM
when using logic code for comparing time values

http://www.cbusforums.com/forums/showthread.php?p=11187#post11187

coppo
08 May 06, 03:11 PM
to make things alot easier for programming with time values,
the logic wizard will support "current time / current date" for comparisons .


currently in the wizard you can write:
"if time = 2:00PM , then do something".


In the next version of the Wizard you will be able to use a variable time/date,
that can be created in system I/O ( on colour ctouch ) or global variables ( on PAC),
that can be compared to the "current time /current date" directly from the wizard UI.

"if time = User_Time1, then do something ".

That way the programmer / user can alter the User_Time1 and it will
dynamically update wherever it is used in the logic code.

The same thing can be done with the "date".