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 - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
||
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.10 | |||
| | |gr1= Math | ||
| | |gr2= Environment | ||
| | |descr= Returns true if given year is a leap year, otherwise false. | ||
| | |s1= year call [[BIS_fnc_isLeapYear]] | ||
| year | |p1= year: [[Number]] - a non-decimal number (a.k.a integer) | ||
| | |r1= [[Boolean]] | ||
| | |x1= <sqf>private _isLeapYear = 2035 call BIS_fnc_isLeapYear;</sqf> | ||
| | |x2= <sqf>private _isLeapYear = 2036 call BIS_fnc_isLeapYear; // 2036 is a leap year</sqf> | ||
| | |seealso= [[date]] | ||
}} | }} | ||
Latest revision as of 22:44, 12 July 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:
- Example 2:
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