BIS fnc secondsToString: Difference between revisions
Jump to navigation
Jump to search
(see also) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Convert seconds to formatted string. |= | | Convert seconds to formatted string. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [totalSeconds, format, returnArray] call [[BIS_fnc_secondsToString]] |= | | [totalSeconds, format, returnArray] call [[BIS_fnc_secondsToString]] |SYNTAX= | ||
|p1= totalSeconds: [[Number]] - time in seconds (see [[time]]) |= | |p1= totalSeconds: [[Number]] - time in seconds (see [[time]]) |PARAMETER1= | ||
|p2= format: [[String]] - (Optional, default "HH:MM:SS") can be one of: | |p2= format: [[String]] - (Optional, default "HH:MM:SS") can be one of: | ||
Line 24: | Line 24: | ||
* "SS.MS" | * "SS.MS" | ||
''HH = Hours, MM = Minutes, SS = Seconds, MS = Milliseconds'' | ''HH = Hours, MM = Minutes, SS = Seconds, MS = Milliseconds'' | ||
|= | |PARAMETER2= | ||
|p3= returnArray: [[Boolean]] - (Optional, default false) |= | |p3= returnArray: [[Boolean]] - (Optional, default false) |PARAMETER3= | ||
| [[String]] or [[Array]] of [[String|Strings]] if ''returnArray'' is set to [[true]] |= | | [[String]] or [[Array]] of [[String|Strings]] if ''returnArray'' is set to [[true]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>[[hint]] [[format]] ["Hi, it is currently %1.", <nowiki>[</nowiki>[[time]], "HH:MM"] [[call]] [[BIS_fnc_secondsToString]]];</code> |= | |x1= <code>[[hint]] [[format]] ["Hi, it is currently %1.", <nowiki>[</nowiki>[[time]], "HH:MM"] [[call]] [[BIS_fnc_secondsToString]]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[time]], [[BIS_fnc_showTime]], [[BIS_fnc_timeToString]] |= | | [[time]], [[BIS_fnc_showTime]], [[BIS_fnc_timeToString]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:33, 7 April 2019
Description
- Description:
- Convert seconds to formatted string.
- Execution:
- call
- Groups:
- Uncategorised
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