获取当天23:59:59时间

Calendar calendar = Calendar.getInstance();
calendar.setTime(filter_update_time);
calendar.set(Calendar.HOUR_OF_DAY, 23);
calendar.set(Calendar.MINUTE, 59);
calendar.set(Calendar.SECOND, 59);
calendar.set(Calendar.MILLISECOND, 59);
Date endTime = calendar.getTime();
posted @ 2020-04-20 10:31  牧の风  阅读(2119)  评论(0编辑  收藏  举报