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)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns true if given year is a leap year, otherwise false. |= Description
 
____________________________________________________________________________________________
Description:
Returns true if given year is a leap year, otherwise false.
 
Parameter(s):
_this: SCALAR - year; a non-decimal number


Example:
| year call [[BIS_fnc_isLeapYear]] |= Syntax
_isLeapYear = 2035 call BIS_fnc_isLeapYear;


Returns:
|p1= year: [[Number]] - a non-decimal number (a.k.a integer) |= Parameter 1
BOOL - is given year a leap year or not?
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_isLeapYear]]; --> |= Syntax
|x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> |= Example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________


|x1= <code></code> |=  
|x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{codecomment|// 2036 is a leap year}}</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[date]] |= See also
 
}}
}}



Revision as of 22:49, 3 May 2018

Hover & click on the images for description

Description

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

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

Notes

Bottom Section