var worldtime = new Array() worldtime[4]="Hong Kong,8" worldtime[3]="Moscow,4" worldtime[2]="Paris,2" worldtime[1]="New York,-4" worldtime[0]="Vancouver,-7" var hours var shifthours var minutes var seconds var localhours var pause=2000 var thisplace var thisline="" var showmenu=1 function affichetoute() { for (i=0; i<=worldtime.length-1;i++) { thisplace=worldtime[i].split(",") thistime= new Date() hours=thistime.getUTCHours() hours=eval(hours) shifthours=eval(thisplace[1]) localhours=eval(shifthours+hours) if (localhours <0) {localhours=24+localhours} if (localhours >=24) {localhours=localhours-24} minutes=thistime.getUTCMinutes() seconds=thistime.getUTCSeconds() if (thisplace[0]=='Delhi') { minutes=eval(minutes+30) if (minutes>=60) { minutes=eval(minutes-60) localhours=eval(localhours+1) } } if (eval(minutes) < 10) {minutes="0"+minutes} if (eval(seconds) < 10) {seconds="0"+seconds} if (eval(localhours) < 10) {localhours="0"+localhours} thisline+=thisplace[0]+" "+localhours+":"+minutes+":"+seconds+" "+"     " } if (document.all) { letemps.innerHTML=thisline thisline="" var timer=setTimeout("affichetoute()",1000) } }