timeanddate clock

muratson

New Member
Does anyone know how is the time in Time and Date Website under the Current Time tab is done?I copied the CSS and the JavaScript and put together this but the time isn't going as the time and date website: My WebsiteJavaScript:\[code\]et=1364486376;function f0(d){return ld[d.getUTCDay()]+','+' '+lm[d.getUTCMonth()]+' '+d.getUTCDate()+','+' '+d.getUTCFullYear()+' at '+((d.getUTCHours()+11)%12+1)+':'+p2(d.getUTCMinutes())+':'+p2(d.getUTCSeconds())+' '+_ap(d);}function f1(d){return ld[d.getUTCDay()]+','+' '+lm[d.getUTCMonth()]+' '+d.getUTCDate()+','+' '+d.getUTCFullYear()+' at '+p2(d.getUTCHours())+':'+p2(d.getUTCMinutes())+':'+p2(d.getUTCSeconds());}function f2(d){return ((d.getUTCHours()+11)%12+1)+':'+p2(d.getUTCMinutes());}function f3(d){return ''+p2(d.getUTCSeconds());}function f4(d){return ''+_ap(d);}function f5(d){return ld[d.getUTCDay()];}function f6(d){return sm[d.getUTCMonth()]+' '+d.getUTCDate()+','+' '+d.getUTCFullYear();}function f7(d){return ''+sm[d.getUTCMonth()];}function f8(d){return ''+d.getUTCFullYear();}function f9(d){return ''+d.getUTCDate();}function f10(d){return sd1[d.getUTCDay()];}cks={clk_hm:{t:[{o:-14400,a:'EDT',d:1}],f:f2},ij0:{t:[{o:-14400,a:'EDT',d:1}],f:f3},clk_am:{t:[{o:-14400,a:'EDT',d:1}],f:f4},ij1:{t:[{o:-14400,a:'EDT',d:1}],f:f5},ij2:{t:[{o:-14400,a:'EDT',d:1}],f:f6},cal_m:{t:[{o:-14400,a:'EDT',d:1}],f:f7},cal_y:{t:[{o:-14400,a:'EDT',d:1}],f:f8},cal_d:{t:[{o:-14400,a:'EDT',d:1}],f:f9},cal_w:{t:[{o:-14400,a:'EDT',d:1}],f:f10}};lm=[];lm[2]='March';sm=[];sm[2]='Mar';ld=[];ld[2]='Tuesday';ld[3]='Wednesday';ld[4]='Thursday';ld[5]='Friday';sd1=[];sd1[2]='Tue';sd1[3]='Wed';sd1[4]='Thu';sd1[5]='Fri';function _ap(d){var t=Math.floor(d.getTime()/1E3)%86400;if(t===0){return 'Midnight';}if(t==43200){return 'Noon';}if(t<43200){return 'AM';}return 'PM';}\[/code\]Can someone tell me what i have to fix or add to make it work?
 
Back
Top