www.pudn.com > lucene_book(1).rar > TestDate.java, change:2006-12-11,size:452b


package test; 
 
import java.util.Date; 
 
public class TestDate { 
 
	public static void main(String[] args) { 
		 
		Date jsDate = new Date(); 
		System.out.println(jsDate.getYear()); 
		System.out.println(jsDate.getMonth()); 
		System.out.println(jsDate.getDay()); 
		System.out.println(jsDate.getHours()); 
		System.out.println(jsDate.getMinutes()); 
		System.out.println(jsDate.getSeconds()); 
		System.out.println(jsDate.toString()); 
 
	} 
 
}