Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.77 KB | None | 0 0
  1. _time = missionStart [0,6];
  2.  
  3.  
  4. if (((_time select 5) + time) >= 60) then {
  5.     _sek = _time select 5 + time;
  6.     _cmin = floor (_sek / 60);
  7.     _sek = _sek - (_cmin * 60);
  8.     if (((_time select 4) + _cmin) >= 60) then {
  9.         _chour = floor (_cmin / 60);
  10.         _cmin = _cmin - (_chour * 60);
  11.         if (((_time select 3) + _chour) >= 24) then {
  12.             _cday = (_time select 2) + 1);
  13.             _chour = 0;
  14.         } else {
  15.             _chour = (_time select 3) +1;
  16.             _cday = _time select 2;
  17.         };
  18.     } else {
  19.         _cmin = (_time select 4) + 1;
  20.         _chour = _time select 3;
  21.         _cday = _time select 2;
  22.     };
  23. };
  24.  
  25.  
  26. if (_cmin < 10) then {
  27.     _cmin = "0" + str(_cmin);
  28. };
  29.  
  30. if (_chour < 10) then {
  31.     _cmin = "0" + str(_chour);
  32. };
  33.  
  34. _time = [str(_time select 0), str(_time select 1), str(_cday), str(_chour), str(_cmin)];
  35.  
  36. _time;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement