The function block YEAR calculates the year of a date.
At the input, a date can be specified in DT#. If no value is set, the current time is used.
The year is output at the output.