Difference between revisions of "systemTime"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (formatting and example)
Line 1: Line 1:
 
{{RV|type=command
 
{{RV|type=command
  
| arma3
+
|game1= arma3
  
| 2.00
+
|version1=  2.00
  
 
|gr1= Time
 
|gr1= Time
  
| Returns system time.
+
|descr= Returns system time.
  
| [[systemTime]]
+
|s1= [[systemTime]]
  
| [[Array]] in format [year, month, day, hour, minute, second, millisecond]
+
|r1= [[Array]] in format [year, month, day, hour, minute, second, millisecond]
  
 
|x1= <code>_currentTime = [[systemTime]];</code>
 
|x1= <code>_currentTime = [[systemTime]];</code>
 +
 +
|x2= <code>[[systemTime]] [[params]] ["_y", "_m", "_d", "_h", "_min", "_s", "_ms"];
 +
[[format]] ["%1:%2:%3", _h, _min, _s];</code>
  
 
|seealso= [[systemTimeUTC]], [[date]], [[time]], [[daytime]], [[diag_tickTime]], [[serverTime]], [[missionStart]], [[diag_deltaTime]]
 
|seealso= [[systemTimeUTC]], [[date]], [[time]], [[daytime]], [[diag_tickTime]], [[serverTime]], [[missionStart]], [[diag_deltaTime]]
 
}}
 
}}
 
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
{{GameCategory|arma3|Scripting Commands}}
 

Revision as of 11:18, 3 May 2021

Hover & click on the images for description

Description

Description:
Returns system time.
Groups:
Time

Syntax

Syntax:
systemTime
Return Value:
Array in format [year, month, day, hour, minute, second, millisecond]

Examples

Example 1:
_currentTime = systemTime;
Example 2:
systemTime params ["_y", "_m", "_d", "_h", "_min", "_s", "_ms"]; format ["%1:%2:%3", _h, _min, _s];

Additional Information

See also:
systemTimeUTCdatetimedaytimediag_tickTimeserverTimemissionStartdiag_deltaTime

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