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


Chapter 3 Tools : $SYSTEMDATE

$SYSTEMDATE
Returns the date when $SYSTEMDATE is called based on the local machine’s time zone in which the Execution Environment is running. (F)
Invocation
date = $SYSTEMDATE
 
Usage Notes
Example
The following rule, which uses PAYMENT as an argument, records the amount received and the current date in the table RECEIPTS:

 
RULE EDITOR ===> SCROLL: P
RECEIVED(PAYMENT);
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ RECEIPTS.AMOUNT = PAYMENT; | 1
_ RECEIPTS.DATE = $SYSTEMDATE; | 2
_ INSERT RECEIPTS; | 3
_ ---------------------------------------------------------------------------

 
Resulting Output
When the rule is executed with the argument 67.89, the bottom occurrence is inserted in the table:

 
EDITING TABLE : RECEIPTS
COMMAND ==>
SCROLL: P
NUM DATE AMOUNT
_ ----------- ---------- ----------
_ 1 2000-02-23 34.56
_ 2 2000-03-10 78.56
_ 3 2000-03-18 23.00
_ 4 2000-03-18 67.89

 

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