рони,
Dilettante_Pro,
Точно блин, я тупица. Надо было просто вывести минуты в этой функции, что и сделал, всем спасибо:
function dateTime (num) {
now = new Date();
year = "" + now.getFullYear();
month = "" + (now.getMonth() + 1); if (month.length === 1) { month = "0" + month; }
day = "" + now.getDate(); if (day.length === 1) { day = "0" + day; }
hour = "" + now.getHours(); if (hour.length === 1) { hour = "0" + hour; }
minute = "" + now.getMinutes(); if (minute.length === 1) { minute = "0" + minute; }
second = "" + now.getSeconds(); if (second.length === 1) { second = "0" + second; }
if(num == 1){
return day + "." + month + "." + year + " " + hour + ":" + minute + ":" + second;
};
if(num == 2){
return hour + ":" + minute + ":" + second;
};
if(num == 3){
return hour + ":" + minute;
};
if(num == 4){
return minute;
};
}