systemTime: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[daytime" to "[[dayTime") |
BrettMayson (talk | contribs) mNo edit summary |
||
(8 intermediate revisions by one other user not shown) | |||
Line 10: | Line 10: | ||
|s1= [[systemTime]] | |s1= [[systemTime]] | ||
|r1= [[Array]] in format [year, month, day, hour, minute, second, millisecond] | |r1= [[Array]] of [[Number]]s in format [year, month, day, hour, minute, second, millisecond] | ||
|x1= < | |x1= <sqf>private _currentTime = systemTime;</sqf> | ||
|x2= < | |x2= <sqf>systemTime apply {if (_x < 10) then {"0" + str _x} else {str _x}}; // ["2021","05","03","14","09","37","593"]</sqf> | ||
|seealso= [[systemTimeUTC]] | |x3= <sqf>systemTime params ["_year", "_month", "_day", "_hour", "_minute", "_second", "_millisecond"];</sqf> | ||
|seealso= [[systemTimeUTC]] [[date]] [[time]] [[dayTime]] [[diag_tickTime]] [[serverTime]] [[missionStart]] [[diag_deltaTime]] | |||
}} | }} |
Latest revision as of 06:40, 7 November 2023
Description
- Description:
- Returns system time.
- Groups:
- Time
Syntax
- Syntax:
- systemTime
- Return Value:
- Array of Numbers in format [year, month, day, hour, minute, second, millisecond]
Examples
- Example 1:
- Example 2:
- Example 3:
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