Difference between revisions of "BIS fnc fixDate"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (pf)
m (Text replacement - "\|s1= +" to "|s1= ")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
+
{{RV|type=function
____________________________________________________________________________________________
 
  
| arma3 |Game name=
+
|game1= arma3
 +
|version1= 1.10
  
|1.10|Game version=
+
|gr1= Math
____________________________________________________________________________________________
 
  
| Checks the array with date data and makes sure, the values are within the boundries.|Description=
+
|gr2= Environment
____________________________________________________________________________________________
 
  
| date call [[BIS_fnc_fixDate]] |Syntax=
+
|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]|Parameter 1=
+
|p1= date: [[Array]] - Date to be checked in form of: [year, month, day, hour, minute]
  
 +
|r1= [[Array]] - Fixed date [year, month, day, hour, minute]
  
| [[Array]] - Fixed date [year, month, day, hour, minute]|Return value=
+
|x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code>
  
<!---
+
|seealso= [[date]], [[setDate]]
|exec= spawn |= Execution
 
--->
 
____________________________________________________________________________________________
 
 
 
|x1= <code>_fixedDate = [2033,-2,89,25,75] [[call]] [[BIS_fnc_fixDate]];</code>|Example 1=
 
____________________________________________________________________________________________
 
 
 
| [[date]], [[setDate]] |See also=
 
 
}}
 
}}
 
 
<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}}]]
 

Latest revision as of 15:31, 19 June 2021

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