#include "..\script_component.hpp" /* * Function: forge_client_phone_fnc_dateToHhMm * Author: IDSolutions * * [Description] * Converts a date to a string in the format "HH:MM". * * Arguments: * 0: Date - The date to convert * * Return Value: * None * * Example: * [date] call forge_client_phone_fnc_dateToHhMm; * * Public: Yes */ private ["_h", "_m"]; _h = _this select 0; _m = _this select 1; _HHMM = []; if (_h < 10) then { _HHMM = [format ["0%1", _h]]; } else { _HHMM = [format ["%1", _h]]; }; if (_m < 10) then { _HHMM = _HHMM + [format ["0%1", _m]]; } else { _HHMM = _HHMM + [format ["%1", _m]]; }; _HHMM;