F_BA_IsLeapYear

The function F_BA_IsLeapYear of return type BOOL returns a TRUE if the entered year is a leap year.
Syntax
FUNCTION F_BA_IsLeapYear : BOOL
VAR_INPUT
nYear : UDINT;
END_VAR
Inputs
Name | Type | Description |
---|---|---|
nYear | UDINT | Year to be studied. |
Requirements
Development environment | Required PLC library |
---|---|
TwinCAT 3.1 4024.35 | Tc3_BA2_Common from V2.1.20.0 |