yearOf()

The system function DateTimeLib.yearOf returns a four-digit integer that represents a year, as derived from a variable to type TIMESTAMP.

  DateTimeLib.yearOf(aTimeStamp TIMESTAMP in)
  returns (result INT)
result
The integer that represents the year.
aTimeStamp
The TIMESTAMP variable from which the year is derived.

Related concepts
Syntax diagram for EGL functions

Related reference
DATE
EGL library DateTimeLib

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