systemTimeUTC: Difference between revisions
Jump to navigation
Jump to search
m (formatting and example) |
m (example) |
||
Line 15: | Line 15: | ||
|x1= <code>_UKTime = [[systemTimeUTC]];</code> | |x1= <code>_UKTime = [[systemTimeUTC]];</code> | ||
|x2= <code>[[systemTime]] [[ | |x2= <code>[[systemTime]] [[apply]] {[[if]] (_x [[a less b|<]] 10) [[then]] {"0" [[+]] [[str]] _x} [[else]] {[[str]] _x}<nowiki>}</nowiki>; {{cc|["2021","05","03","14","09","37","593"]}}</code> | ||
|seealso= [[systemTime]], [[date]], [[time]], [[daytime]], [[diag_tickTime]], [[serverTime]], [[missionStart]], [[diag_deltaTime]] | |seealso= [[systemTime]], [[date]], [[time]], [[daytime]], [[diag_tickTime]], [[serverTime]], [[missionStart]], [[diag_deltaTime]] | ||
}} | }} |
Revision as of 13:12, 3 May 2021
Description
- Description:
- Returns systemTime according to Universal Time Coordinated time scale.
- Groups:
- Time
Syntax
- Syntax:
- systemTimeUTC
- Return Value:
- Array in format [year, month, day, hour, minute, second, millisecond]
Examples
- Example 1:
_UKTime = systemTimeUTC;
- Example 2:
systemTime apply {if (_x < 10) then {"0" + str _x} else {str _x}}; // ["2021","05","03","14","09","37","593"]
Additional Information
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