Defining Logic > Functions > Calendar Functions > CalHour

CalHour

Note: the CalHour function is available only in the Professional edition of Process Simulator.

The CalHour() function corresponds to the hour of the calendar date you defined as part of the warm-up period or simulation begin date under simulation properties. It returns an integer that corresponds to the hour of the day from 0 to 23, inclusively, where 0 denotes the hour from midnight until 1 a.m.. Since this function ties directly to the 24-hour clock displayed on the screen during simulation, CalHour() will never return a value higher than 23. The function can be used in any logic. The function name must be followed by the pair of parentheses.

 

The following is an example of using the function:

If CalHour()=14 Then

{

     <logic statements>

}


© 2015 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com