var today = new Date(); var hors = today.getHours(); var min = today.getMinutes(); var day = today.getDay(); if(day===0){alert((day+5)*24+hors+":"+min);} else if(day===1){alert("Сейчас понедельник");} else{alert((day-2)*24+hors+":"+min);}