http://blog.csdn.net/cynhafa/article/details/8053166
以某种方式表现
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
System.out.println(df.format(new Date()));// new Date()为获取当前系统时间
获取两个时间的差
秒 (time1.getTime()-time2.getTime)/1000
.getTime()获得的是毫秒,/1000是秒,/60是分钟,/60是小时,/24是天