function myTime() {
youbi = new Array("日","月","火","水","木","金","土");
Mydate = new Date();
Myyear = Mydate.getYear();
Myyear_1 = (Myyear < 2000) ? Myyear+1900 : Myyear;
Mymonth = Mydate.getMonth() + 1;
Mydateate = Mydate.getDate();
Mydateay = Mydate.getDay();
Myhours = Mydate.getHours();
Myminutes = Mydate.getMinutes();
Myseconds = Mydate.getSeconds();
msg1 = Myyear_1 + "年" + Mymonth + "月" + Mydateate + "日";
msg2 = youbi[Mydateay] + "曜日";
msg3 = Myhours + "時" + Myminutes + "分" + Myseconds + "秒";
msg = msg1 + " " + msg2 + " " + msg3;
alert("只今 "+ msg + " です。" );
}