BIS fnc compareDateTimes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s1= +" to "|s1= ")
m (Text replacement - " |r1=[[" to " |r1= [[")
Line 13: Line 13:
|p2= '''date_2''': [[Array]] - Date No. 2
|p2= '''date_2''': [[Array]] - Date No. 2


|r1=[[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= <code>[ [2035,5,28,13,37],[2032,5,28,13,37] ] [[call]] [[BIS_fnc_compareDateTimes]];</code>

Revision as of 23:25, 7 August 2021

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:
[date_1,date_2] call BIS_fnc_compareDateTimes
Parameters:
date_1: Array - Date No. 1
date_2: Array - Date No. 2
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:
dateBIS_fnc_isDateTimeNewerBIS_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