BIS fnc monthDays: 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 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns number of days in given month. Takes in account for leap year. |= Description
 
____________________________________________________________________________________________
Description:
Returns number of days in given month. Takes in account for leap year.


Parameter(s):
| [year, month] call [[BIS_fnc_monthDays]] |= Syntax
_this select 0: SCALAR - year; a non-decimal number
_this select 1: SCALAR - month; a non-decimal number between 1-12


Example:
|p1= year: [[Number]] - a non-decimal number |= Parameter 1
_days = [2035,7] call BIS_fnc_monthDays;


Returns:
|p2= month: [[Number]] - a non-decimal number in range 1..12 |= Parameter 2
SCALAR - number of days in given month
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Number]] - number of days in given month |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_monthDays]]; --> |= Syntax
|x1= <code>_daysInThisMonth = <nowiki>[</nowiki>[[date]] [[select]] 0, [[date]] [[select]] 1] [[call]] [[BIS_fnc_monthDays]];</code> |= Example 1
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=
| [[date]], [[BIS_fnc_showTime]], [[BIS_fnc_secondsToString]] |= See also
____________________________________________________________________________________________
 
| |= See also
 
}}
}}



Revision as of 11:08, 27 April 2018


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:
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

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

Notes

Bottom Section