IBM Integration Bus, Version 9.0.0.8 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

CURRENT_TIMESTAMP function

Start of changeThe CURRENT_TIMESTAMP datetime function returns the current date and local time in ISO8601 format.End of change

Syntax

Read syntax diagramSkip visual syntax diagram
>>-CURRENT_TIMESTAMP-------------------------------------------><

Start of changeCURRENT_TIMESTAMP returns an ISO8601 TIMESTAMP value representing the current date and local time. As with all SQL functions that take no parameters, no parentheses are required or accepted. All calls to CURRENT_TIMESTAMP within the processing of one node are guaranteed to return the same value.End of change

Example

To obtain the following XML output message:Start of change
<Body>
<Message>Hello World</Message>
<DateStamp>2017-06-07T11:52:21.450199+01:00</DateStamp>
</Body>
End of change use the following ESQL:
SET OutputRoot.XMLNS.Body.Message = 'Hello World';
SET OutputRoot.XMLNS.Body.DateStamp = CURRENT_TIMESTAMP;

ak05450_.htm | Last updated Friday, 21 July 2017