F_BACnet_CheckYear : USINT

F_BACnet_CheckYear : USINT 1:

Application

Function for checking the validity a numerical date value (BYTE) for the year. The return value matches a valid value for a year, or undefined as a numerical code (*). See BACnet specification DIN EN ISO 16484-5 for data type BACnetDateTime.

Attention: The input value is also corrected (nIn).

VAR_IN_OUT

nIn      : BYTE;

nIn: Numerical year value to be corrected (year minus 1900 → 0 to 254 corresponds to the years 1900 to 2154; 255 → undefined)