{"name":"BIS_fnc_showTime","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","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","exec":"spawn","description":"Shows time gap between two dates.","syntaxes":[{"syntax":"[startDate, endDate] spawn BIS_fnc_showTime","params":[{"name":"startDate","type":"Array in date format","type_expr":"Array"},{"name":"endDate","type":"Array in date format","type_expr":"Array"}],"returns":{"type":"Resource Layer"}}],"examples":[{"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;"]}],"see_also":["date","BIS_fnc_secondsToString"]}