setUTCSeconds < Date < JavaScript
The setUTCSeconds() method of the Date object sets the seconds of the date (according to UTC).
const event = new Date('December 31, 1975, 23:15:30 GMT+11:00');
event.setUTCSeconds(19);
const seconds = event.getUTCSeconds();
console.log(seconds);
// 19