BIS fnc fixDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
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...)
m (Some wiki formatting)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.10


|1.10
|gr1= Math


|gr1 = Math
|gr2= Environment


|gr2 = Environment
|descr= 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.
|s1= date call [[BIS_fnc_fixDate]]


| date call [[BIS_fnc_fixDate]]
|p1= date: [[Array]] format [[Date]] - date to be checked


|r1= [[Array]] format [[Date]] - resulting date


|p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute]
|x1= <sqf>private _fixedDate = [2033, -2, 89, 25, 75] call BIS_fnc_fixDate;</sqf>


 
|seealso= [[date]] [[setDate]]
| [[Array]] - Fixed date [year, month, day, hour, minute]
 
<!---
|exec= spawn |Execution=
--->
 
|x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code>
 
| [[date]], [[setDate]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:fixDate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:fixDate}}]]

Latest revision as of 12:16, 27 July 2022

Hover & click on the images for description

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 format Date - date to be checked
Return Value:
Array format Date - resulting date

Examples

Example 1:
private _fixedDate = [2033, -2, 89, 25, 75] call BIS_fnc_fixDate;

Additional Information

See also:
date setDate

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