BIS fnc showTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Add exec mode)
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |= Game name
|game2= arma2oa
|version2= 1.50


|1.00|= Game version
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| <pre>/*
|game4= arma3
File: showTime.sqf
|version4= 0.50


Description:
|gr1= Environment
Shows time gap between two dates


Parameter(s):
|exec= spawn
_this select 0: Starting date
_this select 1: Ending date


*/
|descr= Shows time gap between two dates.
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_showTime]]; --> |= Syntax
|s1= [startDate, endDate] spawn [[BIS_fnc_showTime]]


|p1= |= Parameter 1
|p1= startDate: [[Array]] in [[date]] format


| |= Return value
|p2= endDate: [[Array]] in [[date]] format
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= Resource Layer
____________________________________________________________________________________________


| |= See also
|x1= <sqf>private _dayStart = date;
_dayStart set [3, 0]; // set hours to 0
_dayStart set [4, 0]; // set minutes to 0
_now = date;
[_dayStart, _now] spawn BIS_fnc_showTime;</sqf>


|seealso= [[date]] [[BIS_fnc_secondsToString]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Systems|{{uc:showTime}}]]
[[Category:Functions|{{uc:showTime}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:showTime}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:showTime}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:showTime}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:showTime}}]]

Latest revision as of 12:38, 2 November 2023

Hover & click on the images for description

Description

Description:
Shows time gap between two dates.
Execution:
spawn
Groups:
Environment

Syntax

Syntax:
[startDate, endDate] spawn BIS_fnc_showTime
Parameters:
startDate: Array in date format
endDate: Array in date format
Return Value:
Resource Layer

Examples

Example 1:
private _dayStart = date; _dayStart set [3, 0]; // set hours to 0 _dayStart set [4, 0]; // set minutes to 0 _now = date; [_dayStart, _now] spawn BIS_fnc_showTime;

Additional Information

See also:
date BIS_fnc_secondsToString

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