---
name: "systemTime"
type: command
status: ok
groups: ["Time"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/systemTime
revid: 347950
updated: 2023-11-07T05:40:08Z
---

# systemTime

*Command · Time · Arma 3 v2.00*

## Description

Returns system time.

## Syntax

```sqf
systemTime
```

**Returns:** [Array](../topics/Array.md) of [Number](../topics/Number.md)s in format [year, month, day, hour, minute, second, millisecond]

## Examples

### Example 1

```sqf
private _currentTime = systemTime;
```

### Example 2

```sqf
systemTime apply {if (_x < 10) then {"0" + str _x} else {str _x}}; // ["2021","05","03","14","09","37","593"]
```

### Example 3

```sqf
systemTime params ["_year", "_month", "_day", "_hour", "_minute", "_second", "_millisecond"];
```

## See also

[systemTimeUTC](../commands/systemTimeUTC.md) · [date](../commands/date.md) · [time](../commands/time.md) · [dayTime](../commands/dayTime.md) · [diag_tickTime](../commands/diag_tickTime.md) · [serverTime](../commands/serverTime.md) · [missionStart](../commands/missionStart.md) · [diag_deltaTime](../commands/diag_deltaTime.md)

<sub>Source: [BI Community Wiki — systemTime](https://community.bistudio.com/wiki/systemTime) (revision 347950).</sub>
