BIS fnc isLeapYear: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.10 | |1.10 | ||
|gr1 = Math | |gr1 = Math | ||
|gr2 = Environment | |gr2 = Environment | ||
| Returns true if given year is a leap year, otherwise false. | | Returns true if given year is a leap year, otherwise false. | ||
| year call [[BIS_fnc_isLeapYear]] | | year call [[BIS_fnc_isLeapYear]] | ||
|p1= year: [[Number]] - a non-decimal number (a.k.a integer) | |p1= year: [[Number]] - a non-decimal number (a.k.a integer) | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> | |x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> | ||
|x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{codecomment|// 2036 is a leap year}}</code> | |x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{codecomment|// 2036 is a leap year}}</code> | ||
| [[date]] | | [[date]] | ||
}} | }} | ||
Revision as of 23:11, 17 January 2021
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:
_isLeapYear = 2035 call BIS_fnc_isLeapYear;
- Example 2:
_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