Difference between revisions of "BIS fnc fixDate"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
− | {{Function | + | {{Function |
− | | arma3 | + | | arma3 |
− | |1.10 | + | |1.10 |
− | |gr1 = Math | + | |gr1 = Math |
− | |gr2 = Environment | + | |gr2 = Environment |
− | | Checks the array with date data and makes sure, the values are within the boundries. | + | | Checks the array with date data and makes sure, the values are within the boundries. |
− | | date call [[BIS_fnc_fixDate]] | + | | 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] |
− | | [[Array]] - Fixed date [year, month, day, hour, minute] | + | | [[Array]] - Fixed date [year, month, day, hour, minute] |
<!--- | <!--- | ||
Line 23: | Line 23: | ||
---> | ---> | ||
− | |x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code> | + | |x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code> |
− | | [[date]], [[setDate]] | + | | [[date]], [[setDate]] |
}} | }} | ||
Revision as of 23:01, 17 January 2021
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:
_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