timeOf()

The system function DateTimeLib.timeOf returns a string that represents the time of day derived from either a TIMESTAMP variable or the system clock.

  DateTimeLib.timeOf([aTimeStamp TIMESTAMP in])
  returns (result STRING)
result
The time-of-day portion of the aTimeStamp argument, as based on a 24-hour clock and the following format:
  hh:mm:ss
hh
The hour as a two-digit string.
mm
The minute as a two-digit string.
ss
The second as a two-digit string.
aTimeStamp
A DATETIME value. If no value is specified, the operator returns a character string representing the current time

Related concepts
Syntax diagram for EGL functions

Related reference
DATE
EGL library DateTimeLib

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