time.js 611 Bytes
// JavaScript Document

<SCRIPT language="JavaScript">
<!--
// テキスト領域に現在の日時を表示する
function gTime() {
  day = new Array("日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日");
  // アクセス日時を表示する。必要がなければ消去可能
  y = (new Date()).getYear();
  t = (new Date()).getMonth() + 1;
  d = (new Date()).getDate();
  w = (new Date()).getDay();
  h = (new Date()).getHours();
  m = (new Date()).getMinutes();
  s = (new Date()).getSeconds();
  document.formN.textN.value = y+"年"+t+"月"+d+"日"+"("+day[w]+") "+h+"時"+m+"分"+s+"秒";
  setTimeout("gTime()",1000);
}
//-->
</SCRIPT>