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 - " <nowiki>[</nowiki>" to " [<nowiki/>")
Line 20: Line 20:
____________________________________________________________________________________________
____________________________________________________________________________________________


|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> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 11:43, 19 March 2020


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