BIS fnc fixDate: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "code>_([a-zA-Z0-9_]+) = " to "code>private _$1 = ")
m (Text replacement - "<code>\[\[private\]\] (_?[a-zA-Z0-9_]+) = \[([^\[]*)\] \[\[(call|spawn)\]\] \[\[(BI(N|S)_fnc_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>private $1 = [$2] $3 $4;</sqf>")
Line 16: Line 16:
|r1= [[Array]] - Fixed date [year, month, day, hour, minute]
|r1= [[Array]] - Fixed date [year, month, day, hour, minute]


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


|seealso= [[date]] [[setDate]]
|seealso= [[date]] [[setDate]]
}}
}}

Revision as of 13:35, 1 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 - 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