BIS fnc secondsToString: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-_]+)\]\]([^<]*)<\/code>" to "= <code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>") |
||
(3 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
|r1= [[String]] or [[Array]] of [[String]]s if ''returnArray'' is set to [[true]] | |r1= [[String]] or [[Array]] of [[String]]s if ''returnArray'' is set to [[true]] | ||
|x1= < | |x1= <sqf>hint format ["Hi, it is currently %1.", [time, "HH:MM"] call BIS_fnc_secondsToString];</sqf> | ||
|seealso= [[time]] [[BIS_fnc_showTime]] [[BIS_fnc_timeToString]] | |seealso= [[time]] [[BIS_fnc_showTime]] [[BIS_fnc_timeToString]] | ||
}} | }} |
Latest revision as of 17:00, 13 July 2022
Description
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"
- returnArray: Boolean - (Optional, default false)
- Return Value:
- String or Array of Strings if returnArray is set to true
Examples
- Example 1:
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