BIS fnc isLeapYear: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|s1= +" to "|s1= ") |
Lou Montana (talk | contribs) m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ") |
||
Line 16: | Line 16: | ||
|r1= [[Boolean]] | |r1= [[Boolean]] | ||
|x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> | |x1= <code>[[private]] _isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> | ||
|x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{cc|2036 is a leap year}}</code> | |x2= <code>[[private]] _isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{cc|2036 is a leap year}}</code> | ||
|seealso= [[date]] | |seealso= [[date]] | ||
}} | }} |
Revision as of 12:06, 6 May 2022
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