@SuppressWarnings("deprecation")
	public static void main(String[] args) throws InterruptedException {
		System.out.println("begin");
		DateService ds = DateService.getInstance();
		Date date;
		System.out.println("for");
		for (int i = 1; i < 10; i++)//day
			for (int j = 1; j < 24; j++)//hour
				for (int k = 0; k < 60; k++)//min
					for (int z = 0; z < 60; z++)
				{
					date = new Date(2014-1900, 8, i);
					date.setHours(j);
					date.setMinutes(k);
					date.setSeconds(z);
					
				
					if (ds.isWorkDay(date) && ds.isRunningTime(date))
					{
						System.out.println(" pass " + date.toString());
					}
				}
		System.out.println("ok");
		Thread.sleep(3000);
		System.out.println("over");
		
		date = ds.getInternetDate();
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

	    String dd =format.format(date);
	    System.out.println(dd);
	}