Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b=[17,50,21,3,5,23,9,57];
- n=Math.floor(Date.now()/6e4);
- tt=n-Math.floor(Date.parse("2021-9-24 10:48")/6e4);
- if(b.length%4==2){b=b.concat([Math.floor(n/60+2)%24,n%60]);};
- for(let i=0;i<b.length/4;i++) {t=tt-(b[4*i+2]-b[4*i])*60-b[4*i+3]+b[4*i+1];};
- h=Math.floor(t/60);
- d=Math.floor(h/24);
- d+" days "+h%24+" hours "+t%60+" minutes"
Advertisement
Add Comment
Please, Sign In to add comment