package ch07_10;
import java.util.Date;
public class DateTest {
	public static void main(String[] args) {
		Date currentDate = new Date();
		System.out.println("当前的日期时间=" + currentDate);
		String out="自1970年1月1日起经历的毫秒数：";
		System.out.println(out+ currentDate.getTime());
		Date newDate = new Date(100000000);
		System.out.println("经过100000000毫秒后的新日期=" + newDate);
		System.out.println("两日期的先后比较："+currentDate.before(newDate));
		System.out.println("两日期的先后比较："+currentDate.after(newDate));
	}
}