1 获取当前时间
// 获取当前时分秒 Calendar now = Calendar.getInstance(); int is = now.get(Calendar.HOUR_OF_DAY); int isf = now.get(Calendar.MINUTE); int iss = now.get(Calendar.SECOND);
时间: 2024-12-28 10:17:18
1 获取当前时间
// 获取当前时分秒 Calendar now = Calendar.getInstance(); int is = now.get(Calendar.HOUR_OF_DAY); int isf = now.get(Calendar.MINUTE); int iss = now.get(Calendar.SECOND);