Professional Documents
Culture Documents
Philippine Standard Time
Philippine Standard Time
<script type="text/javascript">
tday =new
Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
tmonth=new
Array("January","February","March","April","May","June","July","August","September"
,"October","November","December");
function GetClock(){
tzOffset = +8; //set this to the number of hours
offset from UTC
d = new Date();
dx = d.toGMTString();
dx = dx.substr(0,dx.length -3);
d.setTime(Date.parse(dx))
d.setHours(d.getHours() + tzOffset);
nday = d.getDay();
nmonth = d.getMonth();
ndate = d.getDate();
nyear = d.getYear();
nhour = d.getHours();
nmin = d.getMinutes();
nsec = d.getSeconds();
if(nyear<1000) nyear=nyear+1900;
document.getElementById('clockbox').innerHTML=""+tday[nday]+",
"+tmonth[nmonth]+" "+ndate+", "+nyear+" "+nhour+":"+nmin+":"+nsec+ap+"";
setTimeout("GetClock()", 1000);
}
window.onload=GetClock;
</script>