BIS fnc monthDays: 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 number of days in given month. Takes in account for leap year. | | Returns number of days in given month. Takes in account for leap year. | ||
| [year, month] call [[BIS_fnc_monthDays]] | | [year, month] call [[BIS_fnc_monthDays]] | ||
|p1= year: [[Number]] - a non-decimal number | |p1= year: [[Number]] - a non-decimal number | ||
|p2= month: [[Number]] - a non-decimal number in range 1..12 | |p2= month: [[Number]] - a non-decimal number in range 1..12 | ||
| [[Number]] - number of days in given month | | [[Number]] - number of days in given month | ||
|x1= <code>_daysInThisMonth = [<nowiki/>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> | |x1= <code>_daysInThisMonth = [<nowiki/>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> | ||
| [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] | | [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] | ||
}} | }} | ||
Revision as of 23:40, 17 January 2021
Description
- Description:
- Returns number of days in given month. Takes in account for leap year.
- Execution:
- call
- Groups:
- MathEnvironment
Syntax
- Syntax:
- [year, month] call BIS_fnc_monthDays
- Parameters:
- year: Number - a non-decimal number
- month: Number - a non-decimal number in range 1..12
- Return Value:
- Number - number of days in given month
Examples
Additional Information
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