const today = new Date(); const day = today.getDate().toString().padStart(2, '0'); const month = (today.getMonth() + 1).toString().padStart(2, '0'); // Months are zero-indexed const year = today.getFullYear(); const currentDate = `${day}/${month}/${year}`; // Format: DD/MM/YYYY const yesterday = (today.getDate() - 1).toString().padStart(2, '0'); const yesterdayDate = `${yesterday}/${month}/${year}`; // Format: DD/MM/YYYY const tomorrow = (today.getDate() + 1).toString().padStart(2, '0'); const tomorrowDate = `${tomorrow}/${month}/${year}`; // Format: DD/MM/YYYY const hours = String(today.getHours()).padStart(2, '0'); const minutes = String(today.getMinutes()).padStart(2, '0'); const minutesPlus3 = String(today.getMinutes() + 3).padStart(2, '0'); const hoursMinus1 = String(today.getHours() - 1).padStart(2, '0'); const currentTime = `${hours}:${minutes}`; const testTime = `${hours}:${minutesPlus3}`; const delayTime = `${hoursMinus1}:${minutes}`; output.yesterdayDate = yesterdayDate; output.tomorrowDate = tomorrowDate; output.delayTime = delayTime; output.currentDate = currentDate; output.currentTime = currentTime; output.testTime = testTime;