알람기능을 한번 해보고싶은데 알람을 하려면 우선 현재 시간을 알아야 하잖아요?그런데 책을 아무리 찾아봐도 그런 내용은 없더라고요..... 혹시 현재 시간을 알수있는 방법 알고 계신분 없나요?ㅠ 알람 기능 팁까지 주면 더 감사하고요..ㅋ
long time = System.currentTimeMillis();public static String parseDate(long time) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date dd = new Date(date); return sdf.format(dd); }
로그인 유지