Advertisement
jensie1996

Kerst command tijd berekening

Nov 24th, 2022
1,056
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Tijden berekenen.
  2. let daysLeft = Math.floor(timeLeft / (1000 * 60 * 60 * 24));
  3. let hrsLeft = Math.floor((timeLeft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
  4. let minsLeft = Math.floor((timeLeft % (1000 * 60 * 60)) / (1000 * 60));
  5. let secsLeft = Math.floor((timeLeft % (1000 * 60)) / 1000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement