// Расширение прототипа Date для добавления метода TIME() // Возвращает время в формате HH:MM:SS Date.prototype.TIME = function() { const hours = String(this.getHours()).padStart(2, '0'); const minutes = String(this.getMinutes()).padStart(2, '0'); const seconds = String(this.getSeconds()).padStart(2, '0'); return `${hours}:${minutes}:${seconds}`; }; module.exports = {};