Method: Transaction timestamp
Function name: trantime
Parameter list: none
Return type: CHAR
What the method does: The implied input is the current data row. For trigger-based servers, returns the transaction commit timestamp. Time is GMT, including fractions of a second.
For log-based servers, returns transaction start timestamp.
The format is:
yyyymmddhhmmssffffff
If a Copy request, sends a zero-length string. To see an example of how to code an expression to return a different value than the default, see Code row optype to return a value other than a zero-length string and Code row timestamp to return a value other than a zero-length string.
Note: All 6 digits (for System i5 and SQL Server) contain fractional digits that are accurate to 6 digits. Other databases fractional digits may be padded with up to 6 zeros so that all timestamps for all databases total 20 digits.