---
name: "dayTime"
type: command
status: ok
groups: ["Environment", "Mission Information", "Time"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/dayTime
revid: 378415
updated: 2026-04-04T08:39:14Z
---

# dayTime

*Command · Environment, Mission Information, Time · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Returns the current in-game time in hours. For a formatted version of time, see [BIS_fnc_timeToString](../functions/BIS_fnc_timeToString.md).

## Syntax

```sqf
dayTime
```

**Returns:** [Number](../topics/Number.md) in range 0..24 - day time using a 24 hour clock, using fractions of hours

## Examples

### Example 1

```sqf
dayTime; // returns 16.5 given it is 16:30 (4.30pm) in game
```

### Example 2

Get hour, minute, seconds:

```sqf
private _daytime = dayTime; // assuming dayTime returns 1.66046
private _hours = floor _daytime;                                            //  1
private _minutes = floor ((_daytime - _hours) * 60);                        // 39
private _seconds = floor ((((_daytime - _hours) * 60) - _minutes) * 60);    // 37
```

## Multiplayer

Returns the current **local** in-game time in hours.

## See also

[date](../commands/date.md) · [dateToNumber](../commands/dateToNumber.md) · [BIS_fnc_timeToString](../functions/BIS_fnc_timeToString.md) · [time](../commands/time.md) · [skipTime](../commands/skipTime.md) · [systemTime](../commands/systemTime.md) · [systemTimeUTC](../commands/systemTimeUTC.md)

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