Jump to content

non-overlapping time periods


oskrypuch

Recommended Posts

Posted

I want to create two non-overlapping time periods, but with no "uncovered" time inbetween. With inequalities that is easy ...

 

range one

if A .GT/E. 8 and A .LT. 9

 

range two

if A .GT/E 9 and A .LT. 11

 

All values, including 8 and all values between 8 and 11, but NOT 11 are covered in the two ranges, and there are no values between range one & two.

 

 

So, now the time interval programming ...

 

program early

If
       On Mon
       From     5:30:00AM
       To       8:00:00AM (same day)

etc.

 

 

program later

If
       On Mon
       From     8:00:00AM
       To       9:00:00AM (same day)

etc.

 

Would that work, or would both programs execute at precisely 8AM? The scenario is a manual force of the IF clause in both programs.

 

 

I may be answering my own question, but I understand that the execution of a time interval IF clause will trigger at the From time and it will run the THEN clause, and then again at the TO time, and run the ELSE clause.

 

If that is the case with the the manual trigger of the two programs, then all should be OK.

 

What I do not want to happen is to ever have the THEN clause from Program Early and Program Later to be executed at the same time, but I do want all times in the range covered with no uncovered time inbetween.

 

* Orest

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...