BIS fnc fixDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ")
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.10


| arma3 |= Game name
|gr1= Math


|1.00|= Game version
|gr2= Environment
____________________________________________________________________________________________


| <pre>/*
|descr= Checks the array with date data and makes sure, the values are within the boundries.


Description:
|s1= date call [[BIS_fnc_fixDate]]
Checks the array with date data and makes sure, the values are within the boundries.


Parameter(s):
|p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute]
_this: ARRAY - date array [year, month, day, hour, minute]


Example:
|r1= [[Array]] - Fixed date [year, month, day, hour, minute]
_fixedDate = [2033,-2,89,25,75] call BIS_fnc_fixDate;


Returns:
|x1= <code>[[private]] _fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code>
ARRAY - fixed date array [year, month, day, hour, minute]
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_fixDate]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[date]] [[setDate]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Misc|{{uc:fixDate}}]]
[[Category:Functions|{{uc:fixDate}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:fixDate}}]]

Revision as of 13:06, 6 May 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 - 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

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