var roz = new Date().getTime()-(1731621435*1000); function zegar(){ miesiace= new Array ('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December') D = new Date(); D.setTime(D.getTime()-roz); G = D.getHours(); M = D.getMinutes(); M=M<10?'0'+M:M; S = D.getSeconds(); S=S<10?'0'+S:S; r = D.getFullYear(); m = miesiace[D.getMonth()]; d = D.getDate(); document.getElementById('czas').innerHTML=' '+ G + ':' + M + ':' + S; document.getElementById('data').innerHTML=' '+ d + ' ' + m + ' ' + r + ' ' + 'r.' setTimeout('zegar()', 1000); }