{"name":"BIS_fnc_showTime","operator":null,"title":"BIS fnc showTime","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_showTime","revid":347907,"updated":"2023-11-02T11:38:15Z","groups":["Environment"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":"spawn","description":"Shows time gap between two dates.","syntaxes":[{"syntax":"[startDate, endDate] spawn BIS_fnc_showTime","since":null,"effect":null,"exec":null,"params":[{"name":"startDate","type":"Array in date format","optional":false,"default":null,"description":null,"types":["Array","date"],"since":null,"text":"startDate: Array in date format"},{"name":"endDate","type":"Array in date format","optional":false,"default":null,"description":null,"types":["Array","date"],"since":null,"text":"endDate: Array in date format"}],"returns":{"type":"Resource Layer","types":[],"description":null,"text":"Resource Layer"}}],"examples":[{"text":"```sqf\nprivate _dayStart = date;\n_dayStart set [3, 0]; // set hours to 0\n_dayStart set [4, 0]; // set minutes to 0\n_now = date;\n[_dayStart, _now] spawn BIS_fnc_showTime;\n```","code":["private _dayStart = date;\n_dayStart set [3, 0]; // set hours to 0\n_dayStart set [4, 0]; // set minutes to 0\n_now = date;\n[_dayStart, _now] spawn BIS_fnc_showTime;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["date","BIS_fnc_secondsToString"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Environment","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}