﻿
function myFunc(){
myTbl = new Array("SUN","MON","TUE","WED","THU","FRI","SAT");


now = new Date()
myD = new Date()
myD.setTime(now.getTime() + (now.getTimezoneOffset() + 540) * 60 * 1000) 
myYear = myD.getYear();
myYear4 = (myYear < 2000) ? myYear+1900 : myYear;
myMonth = myD.getMonth() +1;
myDate = myD.getDate();
myDay = myD.getDay();
myHours = myD.getHours();
myMinutes = myD.getMinutes();
mySeconds = myD.getSeconds();
if (myMonth < 10) { myMonth = '0' + myMonth };
if (myDate < 10) { myDate = '0' + myDate };
if (myHours < 10) { myHours = '0' + myHours };
if (myMinutes < 10) { myMinutes = '0' + myMinutes };
if (mySeconds < 10) { mySeconds = '0' + mySeconds };
myMess1 = myDate + "/" + myMonth + "/" + myYear4 + " " + "（" + myTbl[myDay] + "）"  + myHours + ":" + myMinutes + ":" + mySeconds + "  JST";
document.getElementById("myTime").innerHTML=myMess1;
}
