Dateメソッドのget(Dateオブジェクトから情報を引き出す)

ページが読み込まれた時点でtodayというDateオブジェクトを作り
そこからgetTime()、getYear()などのメソッドで
ミリセカンド、年、月などの情報を引き出す。
実行結果


ヘッダ部分
なし

ボディ部分 <SCRIPT LANGUAGE="JavaScript"> today = new Date() document.write("today.getTime()は " + today.getTime() + " (0-...)" + "<BR>") document.write("today.getYear()は " + today.getYear() + " (70-...)" + "<BR>") document.write("today.getMonth()は " + today.getMonth() + " (0-11)" + "<BR>") document.write("today.getDate()は " + today.getDate() + " (1-31)" + "<BR>") document.write("today.getDay()は " + today.getDay() + " (0-6)" + "<BR>") document.write("today.getHours()は " + today.getHours() + " (0-23)" + "<BR>") document.write("today.getMinutes()は " + today.getMinutes() + " (0-59)" + "<BR>") document.write("today.getSeconds()は " + today.getSeconds() + " (0-59)" + "<BR>") </SCRIPT>