{"name":"BIS_fnc_timeToString","title":"BIS fnc timeToString","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_timeToString","revid":327131,"updated":"2022-07-12T21:45:21Z","groups":["Strings"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"This function returns a 24-hour time as a string (or array) from a decimal.","syntaxes":[{"syntax":"[time, format] call BIS_fnc_timeToString","params":[{"name":"time","type":"Number","description":"time to convert (format dayTime)","type_expr":"Number"},{"name":"format","type":"String","optional":true,"default":"\"HH:MM:SS\"","description":"one of the following:\n\n- \"HH\" - Hour\n- \"HH:MM\" - Hour:Minute\n- \"HH:MM:SS\" - Hour:Minute:Seconds\n- \"HH:MM:SS:MM\" - Hour:Minute:Seconds:Milliseconds\n- \"ARRAY\" - [Hour, Minute, Seconds, Milliseconds]","type_expr":"String","text":"format: String - (Optional, default \"HH:MM:SS\") one of the following:\n\n- \"HH\" - Hour\n- \"HH:MM\" - Hour:Minute\n- \"HH:MM:SS\" - Hour:Minute:Seconds\n- \"HH:MM:SS:MM\" - Hour:Minute:Seconds:Milliseconds\n- \"ARRAY\" - [Hour, Minute, Seconds, Milliseconds]"}],"returns":{"type":"String or Array","type_expr":"String | Array"}}],"examples":[{"code":["private _time = 7.36;\n[_time] call BIS_fnc_timeToString; // 07:21:36"]},{"code":["private _time = 7.36;\n[_time, \"HH:MM\"] call BIS_fnc_timeToString; // 07:21"]}],"see_also":["time","dayTime","BIS_fnc_secondsToString"]}