BIS fnc compareDateTimes: 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 (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


| arma3
|game1= arma3
|version1= 1.86


|1.86
|gr1= Environment


|gr1 = Environment
|descr= Returns the newer date or returns true if they are identical.


| Returns the newer date or returns true if they are identical.
|s1= [date1, date2] call [[BIS_fnc_compareDateTimes]]


| [date_1,date_2] call [[BIS_fnc_CompareDateTimes]]
|p1= date1: [[Array]] format [[Date]]
|p1= '''date_1''': [[Array]] - Date No. 1
|p2= date2: [[Array]] format [[Date]]
|p2= '''date_2''': [[Array]] - Date No. 2


| [[Boolean]] or [[Array]]
|r1= [[Boolean]] or [[Array]]


|x1= <code>[ [2035,5,28,13,37],[2032,5,28,13,37] ] [[call]] [[BIS_fnc_CompareDateTimes]];</code>
|x1= <sqf>[[2035,5,28,13,37], [2032,5,28,13,37]] call BIS_fnc_compareDateTimes;</sqf>


|[[date]], [[BIS_fnc_IsDateTimeNewer]], [[BIS_fnc_calculateDateTime]]
|seealso= [[date]] [[BIS_fnc_isDateTimeNewer]] [[BIS_fnc_calculateDateTime]]
}}
}}
[[Category:Functions|{{uc:CompareDateTimes}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:CompareDateTimes}}]]

Latest revision as of 12:53, 1 July 2022

Hover & click on the images for description

Description

Description:
Returns the newer date or returns true if they are identical.
Execution:
call
Groups:
Environment

Syntax

Syntax:
[date1, date2] call BIS_fnc_compareDateTimes
Parameters:
date1: Array format Date
date2: Array format Date
Return Value:
Boolean or Array

Examples

Example 1:
[[2035,5,28,13,37], [2032,5,28,13,37]] call BIS_fnc_compareDateTimes;

Additional Information

See also:
date BIS_fnc_isDateTimeNewer BIS_fnc_calculateDateTime

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