%Year function


Function
The function retrieves the time component  - year - of given absolute time.


Declaration


INT %Year(
   TIME in Arg,
   TEXT in timeZone := %GetCurrentTimeZone()
 )


Parameters


ArgFunction argument.
timeZone


Example


%Year(SysTime)     ; the result is the current year of the system time