BIS fnc isLeapYear: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.10 http://dev.arma3.com/post/spotrep-00017)
m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>")
 
(30 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.10


| arma3 |= Game name
|gr1= Math


|1.10|= Game version
|gr2= Environment
____________________________________________________________________________________________


| <pre>/*
|descr= Returns true if given year is a leap year, otherwise false.


Description:
|s1= year call [[BIS_fnc_isLeapYear]]
Returns true if given year is a leap year, otherwise false.


Parameter(s):
|p1= year: [[Number]] - a non-decimal number (a.k.a integer)
_this: SCALAR - year; a non-decimal number


Example:
|r1= [[Boolean]]
_isLeapYear = 2035 call BIS_fnc_isLeapYear;


Returns:
|x1= <sqf>private _isLeapYear = 2035 call BIS_fnc_isLeapYear;</sqf>
BOOL - is given year a leap year or not?
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|x2= <sqf>private _isLeapYear = 2036 call BIS_fnc_isLeapYear; // 2036 is a leap year</sqf>
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_isLeapYear]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[date]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:isLeapYear}}]]
[[Category:Functions|{{uc:isLeapYear}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:isLeapYear}}]]

Latest revision as of 22:44, 12 July 2022

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