Arma 3 Scripting

Function in Strings

BIS_fnc_timeToString

Also available as Markdown and JSON, or read the original wiki page.

Description

This function returns a 24-hour time as a string (or array) from a decimal.

Syntax

[time, format] call BIS_fnc_timeToString

Parameters:

Returns: String or Array

Examples

Example 1

private _time = 7.36;
[_time] call BIS_fnc_timeToString; // 07:21:36

Example 2

private _time = 7.36;
[_time, "HH:MM"] call BIS_fnc_timeToString; // 07:21

See also

time · dayTime · BIS_fnc_secondsToString