Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: Counting Hours

$
0
0

Christy....

 

Thanks again for replying to my posts. I had already changed
the 11 to a 23.

 

The time for the procedure is 22:04 – 3:34.

 

 

My current translation of what you sent is below.

 

 

 

 

 

Thanks again.

 

 

 

 

 

Tom

 

 

 

 

 

 

 

 

NumberVar startHour  := Hour({@TimeInRoom});    
        //
This is a formula for {caseintraop.pat_or_in_datetime}

 

 

NumberVar endHour   :=
Hour({@TimeOutRoom});         
// This is a formula for
{caseintraop.pat_or_out_datetime}

 

 

 

 

 

IF endHour < startHour

 

 

  
        THEN

 

 

 

 

 

IF (7 >= startHour AND 23 >= startHour)  OR
     
            // first day

 

 

    (0 <= endHour AND 7 <=
endHour)         
        
            // second day

 

 

  
        THEN
1                                                                    
***Not sure why I would want a 1 here?

 

 

 

 

 

ELSE IF 22 >= startHour AND 22 <= endHour

 

 

  
        THEN 1

 

 

ELSE 0


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>