public static void main(String[] args) {
		Date oldDate = new Date();
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Date newDate = new Date();
		System.out.println(newDate.after(oldDate));
		System.out.println(newDate.equals(oldDate));
		System.out.println(newDate.getYear() == oldDate.getYear() &&
				newDate.getMonth() == oldDate.getMonth() &&
				newDate.getDay() == oldDate.getDay());
	}