BIS_fnc_monthDays

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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:
private _daysInThisMonth = [date select 0, date select 1] call BIS_fnc_monthDays;

Additional Information

See also:
date BIS_fnc_showTime BIS_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