jeans chen
we've got them by the balls

JAVA毫秒成日期

 
1456人阅读 评论(1) 收藏 举报
long sd=1345185923140L;
           Date dat=new Date(sd);
		   GregorianCalendar gc = new GregorianCalendar(); 
		   gc.setTime(dat);
		   java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		   String sb=format.format(gc.getTime());
		   System.out.println(sb);


dat.toString() ); 
posted on 2013-06-28 16:25  jeans chen  阅读(1579)  评论(0编辑  收藏  举报