The dateTimeLib.yearOf() system function returns a four-digit integer that represents a year, as derived from a TIMESTAMP variable.
dateTimeLib.yearOf(aTimeStamp TIMESTAMP? in) returns (result INT?)