BIS fnc fixDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.10 http://dev.arma3.com/post/spotrep-00017)
m (pf)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.10|= Game version
|1.10|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


Parameter(s):
| date call [[BIS_fnc_fixDate]] |Syntax=
_this: ARRAY - date array [year, month, day, hour, minute]


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


Returns:
|p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute]|Parameter 1=
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
| [[Array]] - Fixed date [year, month, day, hour, minute]|Return value=


|p1= |= Parameter 1
<!---
 
|exec= spawn |= Execution
| |= Return value
--->
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code>|Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[date]], [[setDate]]  |See also=
}}


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 00:52, 17 June 2018

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:
Uncategorised

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

See also:
datesetDate

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