Сообщение от farrewa906
|
видим разницу "6:36"
|
ой а не 6:24 ?
var data = new Date();
data = data.setHours(15,53) - data.setHours(9,29)
function formatTime(seconds) {
var minutes = seconds / 60 | 0,
hours = minutes / 60 | 0,
days = hours / 24 | 0,
hours = hours % 24;
seconds %= 60;
minutes %= 60;
return [days, hours, minutes, seconds]
};
alert(formatTime(data/1000));