01.private Long getStartTime(){
02. Calendar todayStart = Calendar.getInstance();
03. todayStart.set(Calendar.HOUR, 0);
04. todayStart.set(Calendar.MINUTE, 0);
05. todayStart.set(Calendar.SECOND, 0);
06. todayStart.set(Calendar.MILLISECOND, 0);
07. return todayStart.getTime().getTime();
08. }
09.
10. private Long getEndTime(){
11. Calendar todayEnd = Calendar.getInstance();
12. todayEnd.set(Calendar.HOUR, 23);
13. todayEnd.set(Calendar.MINUTE, 59);
14. todayEnd.set(Calendar.SECOND, 59);
15. todayEnd.set(Calendar.MILLISECOND, 999);
16. return todayEnd.getTime().getTime();
17. }
分享到:
2013-05-22 10:59
浏览 3240
评论