public static Date getNextMinute() {
Calendar calendar = Calendar.getInstance();
int minute = calendar.get(Calendar.MINUTE);
calendar.set(Calendar.MINUTE, minute + 1);
Date date = calendar.getTime();
return date;
}
Calendar设置下一分钟
最新推荐文章于 2024-06-07 10:00:00 发布