%Year function


Function
The function retrieves the time component  - year - of given absolute time.
Declaration
INT %Year(
   TIME in Arg,
   INT  in timeZone :=  %GetTimeZone()
 )

Parameters
Arg Function argument.
timeZone Forced time zone to convert to a local time. It is set as a time zone offset from UTC during winter in seconds.

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

Napíšte komentár