BIS fnc isLeapYear: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2 = Environment |GROUP2= | |gr2 = Environment |GROUP2= | ||
| Returns true if given year is a leap year, otherwise false. |DESCRIPTION= | | Returns true if given year is a leap year, otherwise false. |DESCRIPTION= | ||
| year call [[BIS_fnc_isLeapYear]] |SYNTAX= | | year call [[BIS_fnc_isLeapYear]] |SYNTAX= | ||
Line 19: | Line 16: | ||
| [[Boolean]] |RETURNVALUE= | | [[Boolean]] |RETURNVALUE= | ||
|x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> |EXAMPLE1= | |x1= <code>_isLeapYear = 2035 [[call]] [[BIS_fnc_isLeapYear]];</code> |EXAMPLE1= | ||
|x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{codecomment|// 2036 is a leap year}}</code> |EXAMPLE2= | |x2= <code>_isLeapYear = 2036 [[call]] [[BIS_fnc_isLeapYear]]; {{codecomment|// 2036 is a leap year}}</code> |EXAMPLE2= | ||
| [[date]] |SEEALSO= | | [[date]] |SEEALSO= |
Revision as of 23:28, 16 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