﻿// XML取得＆昇順で日付でソート
// 読み込むXMLはBOM付きで

radio_timetable = new Spry.Data.XMLDataSet("../radio_program/nowonair/radio_nowonair.xml", "/channel/item");




// 現在時刻の取得


now = new Date();

now_hours = now.getHours();

	if (now_hours == 0) {
		now_hours = 24;

	}if (now_hours == 1) {
		now_hours = 25;

	}if (now_hours == 2) {
		now_hours = 26;

	}if (now_hours == 3) {
		now_hours = 27;

	}if (now_hours == 4) {
		now_hours = 28;
}

now_hours = now_hours-1;

	if (now_hours < 10) {
		now_hours = "0" + now_hours;

}

now_minutes = now.getMinutes();
	if (now_minutes < 10) {
		now_minutes = "0" + now_minutes;
}

now_time = (now_hours+':'+now_minutes);



// 現在時刻を文字列に変換
// 日付として認識させてはダメ。

new_time = now_time.toString();

