currentTimeStamp()

The system function DateTimeLib.currentTimeStamp retrieves the current system time and date as a timestamp in twenty-digit format (yyyyMMddHHmmssffffff). The value is automatically updated each time it is referenced by your program.

  DateTimeLib.currentTimeStamp( )
  returns (result TIMESTAMP)
result
A TIMESTAMPvalue that represents the current system time and date.
You can use DateTimeLib.currentTimeStamp in these ways:

The characteristics of DateTimeLib.currentTimeStamp are as follows:

Primitive type
TIMESTAMP
Data length
20
Value saved across segments
No

Example

  myTimeStamp = DateTimeLib.currentTimeStamp;

Related reference
EGL library DateTimeLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.