systemTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 ") |
||
Line 16: | Line 16: | ||
|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> | |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= [[systemTimeUTC]] [[date]] [[time]] [[dayTime]] [[diag_tickTime]] [[serverTime]] [[missionStart]] | |seealso= [[systemTimeUTC]] [[date]] [[time]] [[dayTime]] [[diag_tickTime]] [[serverTime]] [[missionStart]] [[diag_deltaTime]] | ||
}} | }} |
Revision as of 20:57, 20 January 2022
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 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