timestampValue()

The function DateTimeLib.timestampValue returns a TIMESTAMP value that reflects a string constant or literal and is built based on the default timestamp mask, which is yyyyMMddHHmmss.

The input string must contain fourteen digits:

If you wish to specify a mask other than yyyyMMddHHmmss, invoke DateTimeLib.timestampValueWithPattern.

  DateTimeLib.timestampValue(timestampAsString STRING in)
  returns (result TIMESTAMP)
result
A variable of type TIMESTAMP.
timestampAsString
A string constant or literal that contains fourteen digits whose meaning is indicated by the timestamp mask yyyyMMddHHmmss

Related concepts
Syntax diagram for EGL functions

Related reference
Datetime expressions
TIMESTAMP
timestampValueWithPattern()

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