date

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Armed Assault version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.00

Description

Description:
Return the actual mission date and time as an array [year, month, day, hour, minute]. Month is a full number between 1 and 12, day is between 1 and 31, hour is between 0 and 23 and minute is between 0 and 59.

Syntax

Syntax:
date
Return Value:
Array - [year, month, day, hour, minute]

Examples

Example 1:
_now = date; // _now = [2014,10,30,2,30] (Oct. 30th, 2:30am) _hour = _now select 3; _min = _now select 4;
Example 2:
if (date select 3 >= 19) then { // 7pm hintSilent "ah, Arma sunset"; //...cue bad guys };

Additional Information

Multiplayer:
Returns the current local in game date.
See also:
setDatedateToNumbernumberToDatetimemissionStart

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section