Calendar calendar = Calendar.getInstance();
if ((calendar.get(calendar.MINUTE) != 0) && (calendar.get(calendar.SECOND) != 0)){
System.out.println("不是整点");
}else {
System.out.println("是整点");
}
取整点数据
最新推荐文章于 2023-05-27 21:42:19 发布