>D
var date = {
hours : 0,
minutes : 0,
seconds : 0
};
var update = function() {
var odate = new Date();
date = {
hours : odate.getHours()+1,
minutes : odate.getMinutes()+1,
seconds : odate.getSeconds()+1
};
delete odate;
setTimeout( update, 1000 );
}
update();
I masz date.hours, date.minutes i date.seconds. W sumie nawet nie trzeba by tworzyć nowego obiektu date, ale dla mnie to w sumie rybka.