/*
 * JavaScript
 * ファイル名 date.js
 * 処理内容   日付、時間情報を取得する
 */

function getDate() {
    week      = new Array("日","月","火","水","木","金","土");
    dateObj   = new Date();
    year      = dateObj.getYear();
    year4     = (year < 2000) ? yaer+1900 : year;
    month     = dateObj.getMonth() + 1;
    date      = dateObj.getDate();
    days      = dateObj.getDay();
    hours     = dateObj.getHours();
    minutes   = dateObj.getMinutes();
    seconds   = dateObj.getSeconds();

    document.writeln(week);
    document.writeln(year4);
    document.writeln(month);
    document.writeln(date);
    document.writeln(hours);
    document.writeln(minutes);
    document.writeln(seconds);
}
