Difference between revisions of "systemTime"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (See also)
m (Some wiki formatting)
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
+
{{RV|type=command
____________________________________________________________________________________________
 
  
| arma3dev |Game name=
+
|game1= arma3
 +
|version1= 2.00
  
| 1.99 |Game version=
+
|gr1= Time
____________________________________________________________________________________________
 
  
| Returns system time. |DESCRIPTION=
+
|descr= Returns system time.
____________________________________________________________________________________________
 
  
| [[systemTime]] |SYNTAX=
+
|s1= [[systemTime]]
  
| [[Array]] in format [year, month, day, hour, minute, second, millisecond] |RETURNVALUE=
+
|r1= [[Array]] in format [year, month, day, hour, minute, second, millisecond]
____________________________________________________________________________________________
 
  
|x1= <code>_currentTime = [[systemTime]];</code> |Example1=
+
|x1= <sqf>private _currentTime = systemTime;</sqf>
____________________________________________________________________________________________
 
  
| [[systemTimeUTC]], [[date]], [[time]], [[daytime]], [[diag_tickTime]], [[serverTime]], [[missionStart]] |SEEALSO=
+
|x2= <sqf>systemTime apply {if (_x < 10) then {"0" + str _x} else {str _x}}; // ["2021","05","03","14","09","37","593"]</sqf>
}}
 
  
<h3 style="display:none">Notes</h3>
+
|x3= <sqf>systemTime params ["_year", "_month", "_day", "_hour", "_minute", "_second", "_millisecond"];</sqf>
<dl class="command_description">
 
<!-- Note Section BEGIN -->
 
  
<!-- Note Section END -->
+
|seealso= [[systemTimeUTC]] [[date]] [[time]] [[dayTime]] [[diag_tickTime]] [[serverTime]] [[missionStart]] [[diag_deltaTime]]
</dl>
+
}}
 
 
<h3 style="display:none">Bottom Section</h3>
 
 
 
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
 
[[Category:Command_Group:_Time_Functions|{{uc:{{PAGENAME}}}}]]
 
 
 
<!-- CONTINUE Notes -->
 
<!-- DISCONTINUE Notes -->
 

Latest revision as of 13:11, 4 May 2022

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:
private _currentTime = systemTime;
Example 2:
systemTime apply {if (_x < 10) then {"0" + str _x} else {str _x}}; // ["2021","05","03","14","09","37","593"]
Example 3:
systemTime params ["_year", "_month", "_day", "_hour", "_minute", "_second", "_millisecond"];

Additional Information

See also:
systemTimeUTC date time dayTime diag_tickTime serverTime missionStart diag_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