BIS fnc fixDate: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects? in MP|Multiplayer Effects( \("local" or "gl...) |
Lou Montana (talk | contribs) m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.10 | |||
| | |gr1= Math | ||
| | |gr2= Environment | ||
| | |descr= Checks the array with date data and makes sure, the values are within the boundries. | ||
|s1= date call [[BIS_fnc_fixDate]] | |||
|p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute] | |p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute] | ||
|r1= [[Array]] - Fixed date [year, month, day, hour, minute] | |||
| [[ | |x1= <code>[[private]] _fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code> | ||
|seealso= [[date]] [[setDate]] | |||
| | |||
}} | }} | ||
Revision as of 12:06, 6 May 2022
Description
- Description:
- Checks the array with date data and makes sure, the values are within the boundries.
- Execution:
- call
- Groups:
- MathEnvironment
Syntax
- Syntax:
- date call BIS_fnc_fixDate
- Parameters:
- date: Array - Date to be checked in form of: [year, month, day, hour, minute]
- Return Value:
- Array - Fixed date [year, month, day, hour, minute]
Examples
- Example 1:
private _fixedDate = [2033,-2,89,25,75] call BIS_fnc_fixDate;
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