F_YearIsLeapYear

The function determines whether a year is a leap year.
FUNCTION F_YearIsLeapYear: BOOL
Inputs
VAR_INPUT
wYear : WORD;
END_VAR
Name | Type | Description |
---|---|---|
wYear | WORD | Year |
Return parameter | Description |
---|---|
TRUE | Leap year |
FALSE | No leap year |
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, Arm®) | Tc2_Utilities (System) |