client/addons/phone/functions/fnc_dateToHhMm.sqf
Jacob Schmidt c6daf95415
All checks were successful
Build / Build (push) Successful in 53s
Initial Repo Setup
2025-01-01 14:35:12 -06:00

22 lines
325 B
Plaintext

#include "..\script_component.hpp"
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;