摘要:
Date类中的getMinute和getSecond方法都过时了,不推荐使用,如果需要得到分和秒,请用CalendarDate date = new Date();Calendar calendar = Calendar.getInstance();calendar.setTime(date);if (calendar.get(Calendar.MINUTE) == 0 && calendar.get(Calendar.SECOND) == 0) { MainFrame mainFrame = new MainFrame(); mainFrame.setVisible(true
阅读全文