function js_clock(A,B,J,N){var _=new Date(),P=_.getDay();_=DateAdd("s",_,B);var G=_.getHours(),Q=_.getMinutes(),D=_.getSeconds(),F="AM";if(G>11){F="PM";G=G-12}if(G==0)G=12;if(G<10)G=""+G;if(Q<10)Q="0"+Q;if(D<10)D="0"+D;if(P==0)P="Sun";else if(P==1)P="Mon";else if(P==2)P="Tue";else if(P==3)P="Wed";else if(P==4)P="Thu";else if(P==5)P="Fri";else if(P==6)P="Sat";var O=_.getMonth(),M=_.getDate(),H=_.getYear();if(H<=99)H="19"+H;if((H>99)&&(H<2000))H+=1900;var I="";if(O==0)I="Jan";else if(O==1)I="Feb";else if(O==2)I="Mar";else if(O==3)I="Apr";else if(O==4)I="May";else if(O==5)I="Jun";else if(O==6)I="Jul";else if(O==7)I="Aug";else if(O==8)I="Sep";else if(O==9)I="Oct";else if(O==10)I="Nov";else if(O==11)I="Dec";var C=document.getElementById(J);if(document.getElementById("timeformat")!=null)N=document.getElementById("timeformat").options[document.getElementById("timeformat").selectedIndex].value;O=O+1;var L="",K=""+""+"",E=" "+" "+" ",$=" "+" "+" ";if(N==1)L=I+" "+M+K+" "+H+" "+G+":"+Q+":"+D+" "+F;else if(N==2)L=M+K+""+I+" "+H+" "+G+":"+Q+":"+D+" "+F;else if(N==3)L=O+"/"+M+"/"+H+" "+G+":"+Q+":"+D+" "+F;else if(N==4)L=M+"/"+O+"/"+H+" "+G+":"+Q+":"+D+" "+F;else if(N==5)L=H+"/"+O+"/"+M+" "+G+":"+Q+":"+D+" "+F;else if(N==6)L=H+"-"+O+"-"+M+" "+G+":"+Q+":"+D+" "+F;else if(N==7)L=I+" "+M+K+" "+H+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==8)L=M+K+""+I+" "+H+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==9)L=O+"/"+M+"/"+H+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==10)L=M+"/"+O+"/"+H+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==11)L=H+"/"+O+"/"+M+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==12)L=H+"-"+O+"-"+M+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==13)L=H+$+" "+O+E+" "+M+K+" "+P+" "+G+":"+Q+":"+D+" "+F;else if(N==14)L=P+", "+I+" "+M+K+""+H+" "+G+":"+Q+":"+D+" "+F;else if(N==15)L=P+", "+M+K+" "+I+" "+H+" "+G+":"+Q+":"+D+" "+F;else if(N==16)L=P+" "+I+" "+M+K+" "+H+" "+G+":"+Q+":"+D+" "+F;else if(N==17)L=P+" "+M+K+" "+I+" "+H+" "+G+":"+Q+":"+D+" "+F;C.innerHTML=L;setTimeout(""+A+"("+B+",'"+J+"',"+N+")",1000)}function DateAdd(_,$,A){switch(_){case"d":$.setDate($.getDate()+A);break;case"m":$.setMonth($.getMonth()+A);break;case"y":$.setYear($.getFullYear()+A);break;case"h":$.setHours($.getHours()+A);break;case"n":$.setMinutes($.getMinutes()+A);break;case"s":$.setSeconds($.getSeconds()+A);break}return $}function dateDiff(interval,date1,date2){var objInterval={"D":1000*60*60*24,"H":1000*60*60,"M":1000*60,"S":1000,"T":1};interval=interval.toUpperCase();var dt1=Date.parse(date1.replace(/-/g,"/")),dt2=Date.parse(date2.replace(/-/g,"/"));try{return Math.round((dt2-dt1)/eval("(objInterval."+interval+")"))}catch(e){return e.message}}function addLoadEvent($){var _=window.onload;if(typeof window.onload!="function")window.onload=$;else window.onload=function(){_();$()}}var firstdate=new Date(); firstdate.setFullYear(2018,8,18); firstdate.setHours(20); firstdate.setMinutes(25); firstdate.setSeconds(07); var now=new Date(); var mydiff=(firstdate-now)/1000; function mystartclocktw8490122(){ js_clock('mystartclocktw8490122',mydiff,'clocktw849012',1); } addLoadEvent(mystartclocktw8490122); document.write("
2018-09-19
星期三
高:25°C  (77°F)
低:15°C  (59°F)
");