BIS fnc monthDays: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
m (Text replacement - "\| *arma3 * * *\| *([0-2]\.[0-9]{2}) * " to "|game1= arma3 |version1= $1 ")
(17 intermediate revisions by 2 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
____________________________________________________________________________________________


| Returns number of days in given month. Takes in account for leap year. |DESCRIPTION=
|descr= Returns number of days in given month. Takes in account for leap year.
____________________________________________________________________________________________


| [year, month] call [[BIS_fnc_monthDays]] |SYNTAX=
|s1=[year, month] call [[BIS_fnc_monthDays]]


|p1= year: [[Number]] - a non-decimal number |PARAMETER1=
|p1= year: [[Number]] - a non-decimal number


|p2= month: [[Number]] - a non-decimal number in range 1..12 |PARAMETER2=
|p2= month: [[Number]] - a non-decimal number in range 1..12


| [[Number]] - number of days in given month |RETURNVALUE=
|r1= [[Number]] - number of days in given month
____________________________________________________________________________________________


|x1= <code>_daysInThisMonth = <nowiki>[</nowiki>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> |EXAMPLE1=
|x1= <code>_daysInThisMonth = [<nowiki/>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code>
____________________________________________________________________________________________


| [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] |SEEALSO=
|seealso= [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]]
}}
}}
<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:monthDays}}]]
[[Category:Functions|{{uc:monthDays}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:monthDays}}]]

Revision as of 23:47, 13 June 2021

Hover & click on the images for description

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

Example 1:
_daysInThisMonth = [date select 0, date select 1] call BIS_fnc_monthDays;

Additional Information

See also:
dateBIS_fnc_showTimeBIS_fnc_secondsToString

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