BIS fnc secondsToString: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Strings(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| tkoh |Game name= | | tkoh |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Strings |GROUP1= | |gr1 = Strings |GROUP1= | ||
| Convert seconds to formatted string. |DESCRIPTION= | | Convert seconds to formatted string. |DESCRIPTION= | ||
| [totalSeconds, format, returnArray] call [[BIS_fnc_secondsToString]] |SYNTAX= | | [totalSeconds, format, returnArray] call [[BIS_fnc_secondsToString]] |SYNTAX= | ||
Line 31: | Line 28: | ||
| [[String]] or [[Array]] of [[String|Strings]] if ''returnArray'' is set to [[true]] |RETURNVALUE= | | [[String]] or [[Array]] of [[String|Strings]] if ''returnArray'' is set to [[true]] |RETURNVALUE= | ||
|x1= <code>[[hint]] [[format]] ["Hi, it is currently %1.", [<nowiki/>[[time]], "HH:MM"] [[call]] [[BIS_fnc_secondsToString]]];</code> |EXAMPLE1= | |x1= <code>[[hint]] [[format]] ["Hi, it is currently %1.", [<nowiki/>[[time]], "HH:MM"] [[call]] [[BIS_fnc_secondsToString]]];</code> |EXAMPLE1= | ||
| [[time]], [[BIS_fnc_showTime]], [[BIS_fnc_timeToString]] |SEEALSO= | | [[time]], [[BIS_fnc_showTime]], [[BIS_fnc_timeToString]] |SEEALSO= |
Revision as of 23:50, 16 January 2021
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:
hint format ["Hi, it is currently %1.", [time, "HH:MM"] call BIS_fnc_secondsToString];
Additional Information
- See also:
- timeBIS_fnc_showTimeBIS_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