BIS fnc timeToString: Difference between revisions
| m (1 revision) |  (Formatted page) | ||
| Line 1: | Line 1: | ||
| {{Function|= | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |  | | Arma 3 |= Game | ||
| |0.50|= Game Version (number surrounded by NO SPACES) | |||
| |arg= "local" |= Multiplayer Arguments | |||
| |eff= "local" |= Multiplayer Effects | |||
| ____________________________________________________________________________________________ | |||
| | This function returns a 24-hour time as a string from a decimal |= Description | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |  | | [] [[call]] [[BIS_fnc_timeToString]]; |= Syntax | ||
| |p1= |= Parameter 1 | |p1= [[Number]] - time to convert |= Parameter 1 | ||
| | |=  | |p2= [[String]] - format (optional): <br> | ||
| <br><br> | |||
| "HH"                    - Hour <br> | |||
| "HH:MM"              - Hour:Minute <br> | |||
| "HH:MM:SS"       - Hour:Minute:Seconds (default) <br> | |||
| "HH:MM:SS:MM" - Hour:Minute:Seconds:Milliseconds <br> | |||
| "ARRAY"           - [Hour,Minute,Seconds,Milliseconds] <br> | |||
| |= Parameter 2 | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |x1= <code></code> |=   | |x1=<code>_time = 7.36; | ||
| [_time] call BIS_fnc_timeToString; // 07:21:36</code> |= Example 1 | |||
| ____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |[[Number]]|= Return Value | |||
| | |= See  | | SEEALSO |= See Also | ||
| }} | }} | ||
| <dl class="command_description"> | <dl class="command_description"> | ||
| <!-- Note Section  | <!-- BEGIN Note Section --> | ||
| <!-- For example: | |||
| <!-- Note Section  | <dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd> | ||
| <dt class="note">'''[[User:User Name|]]'''</dt> | |||
| <dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet. | |||
| <code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd> | |||
| --> | |||
| <!-- END Note Section --> | |||
| </dl> | </dl> | ||
| <h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
| [[Category: | <!-- Appropriate categories go here e.g. [[Category:Arma 3: Functions|{{uc:{{PAGENAME}}}}]] --> | ||
Revision as of 16:03, 8 May 2016
Description
- Description:
- This function returns a 24-hour time as a string from a decimal
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [] call BIS_fnc_timeToString;
- Parameters:
- Number - time to convert
- String - format (optional): 
 
 "HH" - Hour
 "HH:MM" - Hour:Minute
 "HH:MM:SS" - Hour:Minute:Seconds (default)
 "HH:MM:SS:MM" - Hour:Minute:Seconds:Milliseconds
 "ARRAY" - [Hour,Minute,Seconds,Milliseconds]
- Return Value:
- Number
Examples
- Example 1:
- _time = 7.36; [_time] call BIS_fnc_timeToString; // 07:21:36
Additional Information
- See also:
- SEEALSO
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
 
	