Beijing Time£º
<SCRIPT language=JavaScript>
today=new Date();
var hours = today.getHours();
var hours1 = (hours <= 12) ? hours : hours-12;
var minutes = today.getMinutes();
var AMPM = ((hours <= 12) ? "AM":"PM");
AMPM += hours1
AMPM += ((minutes < 10) ? "<BLINK>:</BLINK>0":"<BLINK>:</BLINK>") + minutes;
¡¡
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]}
var d=new initArray("Sun","Mon","Tues","Wednes","Turs","Fri","Satur");
¡¡
document.write(
today.getMonth()+1,"/",
today.getDate(),"/",
today.getYear()," ",
d[today.getDay()+1],"day ",
AMPM);
</SCRIPT>