标签:
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;
标签:
原文地址:http://www.cnblogs.com/tutuwowo/p/5855025.html