---
name: "BIS_fnc_showTime"
type: function
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_showTime
revid: 347907
updated: 2023-11-02T11:38:15Z
---

# BIS_fnc_showTime

*Function · Environment · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: executed with **spawn**

## Description

Shows time gap between two dates.

## Syntax

```sqf
[startDate, endDate] spawn BIS_fnc_showTime
```

**Parameters:**

- `startDate`: [Array](../topics/Array.md) in [date](../commands/date.md) format
- `endDate`: [Array](../topics/Array.md) in [date](../commands/date.md) format

**Returns:** Resource Layer

## Examples

### Example 1

```sqf
private _dayStart = date;
_dayStart set [3, 0]; // set hours to 0
_dayStart set [4, 0]; // set minutes to 0
_now = date;
[_dayStart, _now] spawn BIS_fnc_showTime;
```

## See also

[date](../commands/date.md) · [BIS_fnc_secondsToString](../functions/BIS_fnc_secondsToString.md)

<sub>Source: [BI Community Wiki — BIS fnc showTime](https://community.bistudio.com/wiki/BIS_fnc_showTime) (revision 347907).</sub>
