Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : SECOND

SECOND
Returns the second within the minute that the transaction started based on the local machine’s time zone in which the Execution Environment is running. (F)
Invocation
string = SECOND
 
On return, contains the number of seconds. Its syntax is C (fixed-length character string) with length 2.
Usage Notes
The returned value is a string representing the second (“00”, “01”, “02”, ..., “59”).
Example
The following rule determines the second when the transaction started and prints it to the message log:

 
SECOND_1;
_ LOCAL TIME;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ TIME = SECOND; | 1
_ CALL MSGLOG('THIS TRANSACTION WAS STARTED ' || TIME        | 2
_ || 'SECONDS AFTER THE MINUTE.');                          |
_ ------------------------------------------------------------------------

 
Pressing PF2 after executing this rule displays the following on the screen:

 
----------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
THIS TRANSACTION WAS STARTED 25 SECONDS AFTER THE MINUTE.

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved