getCurrentTimestamp

Description:

Returns a current time stamp. The format is specified in the first parameter. It includes all date and time formats specified by the java.text.SimpleDateFormat class (like the creationtimestamp condition operator), as described in the Data import technical reference in the Transformations section.
If you only specify one parameter, the same time stamp - corresponding to the first time the operation is called - will be generated as the attribute value in all system events in the output file(s). If you specify two parameters, the time of the operation call is written to the system event as a time stamp attribute. This means the values can differ depending on the selected format and extraction duration. There is no plausibility check of the second parameter, it just needs to exist. If no value can be determined for the first parameter, nothing is returned.

Syntax:

One to two parameters

Example:

<operation name="getCurrentTimestamp">
<constant>dd.MM.yyyy HH:mm:ss</constant>
<constant/>
</operation>

Return value:

e.g., 20.07.2006 15:45:08, otherwise various values for different system events depending on extraction duration.