comparing time values

Discussion in 'Pascal Logic Code Examples' started by coppo, Apr 21, 2006.

  1. coppo

    coppo

    Joined:
    Sep 7, 2004
    Messages:
    221
    Likes Received:
    10
    Location:
    Adelaide
    coppo, Apr 21, 2006
    #1
  2. coppo

    coppo

    Joined:
    Sep 7, 2004
    Messages:
    221
    Likes Received:
    10
    Location:
    Adelaide
    "time", "Date" comparisons

    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".
     
    coppo, May 8, 2006
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.