BIS_fnc_secondsToString

From Bohemia Interactive Community
Revision as of 18:00, 13 July 2022 by Lou Montana (talk | contribs) (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Convert seconds to formatted string.
Execution:
call
Groups:
Strings

Syntax

Syntax:
[totalSeconds, format, returnArray] call BIS_fnc_secondsToString
Parameters:
totalSeconds: Number - time in seconds (see time)
format: String - (Optional, default "HH:MM:SS") can be one of:
  • "HH"
  • "HH:MM"
  • "HH:MM:SS"
  • "HH:MM:SS.MS"
  • "MM"
  • "MM:SS"
  • "MM:SS.MS"
  • "SS.MS"
HH = Hours, MM = Minutes, SS = Seconds, MS = Milliseconds
returnArray: Boolean - (Optional, default false)
Return Value:
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];

Additional Information

See also:
time BIS_fnc_showTime BIS_fnc_timeToString

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note