Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Tools : HOUR

HOUR
Returns the hour of the day when the current transaction started based on the local machine’s time zone in which the Execution Environment is running. (F)
Invocation
time = HOUR
 
On return, contains the hour. Its syntax is C (fixed-length character string) with length 2.
Usage Notes
The returned value is a string containing the number of the hour (00-23).
Example
The following rule determines the hour and prints it to the message log:

 
RULE EDITOR ===>
HOUR_1;
_ LOCAL TIME;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ TIME = HOUR; | 1
_ CALL MSGLOG('THIS TRANSACTION WAS STARTED AFTER ' || TIME   | 2
_ || ':00.'); |
_ ------------------------------------------------------------------------

 
Output for the HOUR_1 Rule:
Pressing PF2 after executing this rule displays the following on the screen:

 
----------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
THIS TRANSACTION WAS STARTED AFTER 13:00.

 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved