Calendar instance = Calendar.getInstance(); int m = instance.get(Calendar.MINUTE); for (int i = 0; i < 4; i++) { if (m >= i * 15 && m < i * 15 + 15) { instance.add(Calendar.MINUTE, i * 15 + 15 - m); instance.set(Calendar.SECOND, 0); break; } }
了解 工作生活心情记忆 的更多信息
Subscribe to get the latest posts sent to your email.