Difference between revisions of "BIS fnc isDateTimeNewer"

From Bohemia Interactive Community
Jump to navigation Jump to search
(Change version)
m (formatting)
Line 2: Line 2:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3 |= Game name
+
| arma3 |Game name=
  
|1.86|= Game version
+
|1.86|Game version=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <pre>
+
| Returns true if the first passed datetime is newer than the second one. |Description=
/************************************************************
 
Copmare two Dates
 
 
 
Parameters: [date1, date2]
 
 
 
Returns true if the first passed datetime is newer than the second one
 
 
 
 
 
Example: [date, [2035,8,29,11,55] ] call BIS_fnc_IsDateTimeNewer
 
************************************************************/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIS_fnc_IsDateTimeNewer]]; --> |= Syntax
+
| [date_1,date_2] call [[BIS_fnc_IsDateTimeNewer]] |Syntax=
 +
|p1= '''date_1''': [[Array]] - Date No. 1|Parameter 1=
 +
|p2= '''date_2''': [[Array]] - Date No. 2 |Parameter 2=
  
|p1= |= Parameter 1
+
| [[Boolean]] |Return value=
 
 
| |= Return value
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|x1= <code></code> |=  
+
|x1= <code>_isNewer = [ [2035,5,28,13,37],[2032,5,28,13,37] ] [[call]] [[BIS_fnc_IsDateTimeNewer]];</code> |Example 1=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
|[[date]], [[BIS_fnc_CompareDateTimes]], [[BIS_fnc_CalculateDateTime]]|See also=
 
 
 
}}
 
}}
 
&lt;h3 style="display:none"&gt;Notes&lt;/h3&gt;
 
&lt;dl class="command_description"&gt;
 
&lt;!-- Note Section BEGIN --&gt;
 
 
&lt;!-- Note Section END --&gt;
 
&lt;/dl&gt;
 
 
&lt;h3 style="display:none"&gt;Bottom Section&lt;/h3&gt;
 
 
[[Category:Function Group: DateTime|{{uc:IsDateTimeNewer}}]]
 
[[Category:Function Group: DateTime|{{uc:IsDateTimeNewer}}]]
 
[[Category:Functions|{{uc:IsDateTimeNewer}}]]
 
[[Category:Functions|{{uc:IsDateTimeNewer}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:IsDateTimeNewer}}]]
 
[[Category:{{Name|arma3}}: Functions|{{uc:IsDateTimeNewer}}]]

Revision as of 14:49, 9 December 2018

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

Syntax

Syntax:
[date_1,date_2] call BIS_fnc_IsDateTimeNewer
Parameters:
date_1: Array - Date No. 1
date_2: Array - Date No. 2
Return Value:
Boolean

Examples

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

Additional Information

See also:
dateBIS_fnc_CompareDateTimesBIS_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