Arma 3 Scripting

Function in Strings

BIS_fnc_secondsToString

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

Description

Convert seconds to formatted string.

Syntax

[totalSeconds, format, returnArray] call BIS_fnc_secondsToString

Parameters:

Returns: String or Array of Strings if returnArray is set to true

Examples

Example 1

hint format ["Hi, it is currently %1.", [time, "HH:MM"] call BIS_fnc_secondsToString];

See also

time · BIS_fnc_showTime · BIS_fnc_timeToString