BIS fnc monthDays: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [year, month] call [[BIS_fnc_monthDays]] |= | | [year, month] call [[BIS_fnc_monthDays]] |SYNTAX= | ||
|p1= year: [[Number]] - a non-decimal number |= | |p1= year: [[Number]] - a non-decimal number |PARAMETER1= | ||
|p2= month: [[Number]] - a non-decimal number in range 1..12 |= | |p2= month: [[Number]] - a non-decimal number in range 1..12 |PARAMETER2= | ||
| [[Number]] - number of days in given month |= | | [[Number]] - number of days in given month |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_daysInThisMonth = <nowiki>[</nowiki>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> |= | |x1= <code>_daysInThisMonth = <nowiki>[</nowiki>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] |= | | [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:32, 7 April 2019
Description
- Description:
- Returns number of days in given month. Takes in account for leap year.
- Execution:
- call
- Groups:
- Uncategorised
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