BIS_fnc_isLeapYear

From Bohemia Interactive Community
Revision as of 23:23, 12 July 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^<]*)\{\{cc\|([^{}]+)\}\} *<\/code>" to "<code>$1// $2</code>")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Returns true if given year is a leap year, otherwise false.
Execution:
call
Groups:
MathEnvironment

Syntax

Syntax:
year call BIS_fnc_isLeapYear
Parameters:
year: Number - a non-decimal number (a.k.a integer)
Return Value:
Boolean

Examples

Example 1:
private _isLeapYear = 2035 call BIS_fnc_isLeapYear;
Example 2:
private _isLeapYear = 2036 call BIS_fnc_isLeapYear; // 2036 is a leap year

Additional Information

See also:
date

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note