timeOf()

The dateTimeLib.timeOf() system function returns a TIME value that represents the time of day derived from either a TIMESTAMP variable or the system clock.

Syntax

  dateTimeLib.timeOf([aTimeStamp TIMESTAMP? in])
  returns (result TIME?)
aTimeStamp
A TIMESTAMP variable. Unlike similar functions like dateTimeLib.dateOf() and dateTimeLib.monthOf(), you can call dateTimeLib.timeOf() with no parameters. In that case, it returns a character string representing the current time.
result
The time-of-day portion of aTimeStamp as a TIME variable. This value is based on a 24-hour clock. If aTimeStamp is null, the function returns a null value.

Feedback