BIS fnc isDateTimeNewer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Lou Montana moved page BIS fnc IsDateTimeNewer to BIS fnc isDateTimeNewer: capital I)
m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.86


|1.86|Game version=
|gr1= Environment
____________________________________________________________________________________________


| Returns true if the first passed datetime is newer than the second one. |Description=
|descr= Returns true if the first passed datetime is newer than the second one.
____________________________________________________________________________________________


| [date_1,date_2] call [[BIS_fnc_IsDateTimeNewer]] |Syntax=
|s1= [date1, date2] call [[BIS_fnc_isDateTimeNewer]]
|p1= '''date_1''': [[Array]] - Date No. 1|Parameter 1=
|p2= '''date_2''': [[Array]] - Date No. 2 |Parameter 2=


| [[Boolean]] |Return value=
|p1= date1: [[Array]] format [[Date]]
____________________________________________________________________________________________


|x1= <code>_isNewer = [ [2035,5,28,13,37],[2032,5,28,13,37] ] [[call]] [[BIS_fnc_IsDateTimeNewer]];</code> |Example 1=
|p2= date2: [[Array]] format [[Date]]
____________________________________________________________________________________________


|[[date]], [[BIS_fnc_CompareDateTimes]], [[BIS_fnc_CalculateDateTime]]|See also=
|r1= [[Boolean]]
 
|x1= <sqf>private _isNewer = [[2035,5,28,13,37], [2032,5,28,13,37]] call BIS_fnc_isDateTimeNewer;</sqf>
 
|seealso= [[date]] [[BIS_fnc_compareDateTimes]] [[BIS_fnc_calculateDateTime]]
}}
}}
[[Category:Function Group: DateTime|{{uc:IsDateTimeNewer}}]]
[[Category:Functions|{{uc:IsDateTimeNewer}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:IsDateTimeNewer}}]]

Latest revision as of 12:58, 1 July 2022

Hover & click on the images for description

Description

Description:
Returns true if the first passed datetime is newer than the second one.
Execution:
call
Groups:
Environment

Syntax

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

Examples

Example 1:
private _isNewer = [[2035,5,28,13,37], [2032,5,28,13,37]] call BIS_fnc_isDateTimeNewer;

Additional Information

See also:
date BIS_fnc_compareDateTimes 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