Date time1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") .parse(intime); Date time2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss") .parse(outtime); Long chas = (time2.getTime() - time1.getTime()) / (3600 * 1000)+1;
posted on 2016-09-09 00:20 看你妹儿 阅读(282) 评论(0) 编辑 收藏 举报