There is a function - a countdown timer. It counts from the specified number of seconds to zero.
function countDown() { var seconds = 70997; var timer = setInterval(function() { if (seconds > 0) { seconds --; if (seconds < 10) { seconds = "0" + seconds; } $(".timer .seconds").text(seconds); } else { clearInterval(timer); } }, 1000); } seconds = 70997 - 19 hours / 43 minutes / 17 seconds. How to divide the output in hours / seconds / minutes in the timer?
Dateclass - Pavel Mayorov