Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _time = missionStart [0,6];
- if (((_time select 5) + time) >= 60) then {
- _sek = _time select 5 + time;
- _cmin = floor (_sek / 60);
- _sek = _sek - (_cmin * 60);
- if (((_time select 4) + _cmin) >= 60) then {
- _chour = floor (_cmin / 60);
- _cmin = _cmin - (_chour * 60);
- if (((_time select 3) + _chour) >= 24) then {
- _cday = (_time select 2) + 1);
- _chour = 0;
- } else {
- _chour = (_time select 3) +1;
- _cday = _time select 2;
- };
- } else {
- _cmin = (_time select 4) + 1;
- _chour = _time select 3;
- _cday = _time select 2;
- };
- };
- if (_cmin < 10) then {
- _cmin = "0" + str(_cmin);
- };
- if (_chour < 10) then {
- _cmin = "0" + str(_chour);
- };
- _time = [str(_time select 0), str(_time select 1), str(_cday), str(_chour), str(_cmin)];
- _time;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement