This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS setSeconds()

The setSeconds() method sets the seconds of a date object (0-59):

const d = new Date();
d.setSeconds(30);
document.getElementById("demo").innerHTML = d;