Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- antbuild
- 맥Ant설치
- java
- 태그를 입력해 주세요.
- throws
- equals
- 타이머테스크
- githubblog
- 맥톰캣설치
- auto boxing
- 이클립스 ANt
- 입출력
- githubpage
- 맥단축키
- NullPointException
- 랜덤클래스
- API
- 맥숨긴폴더
- 포맷팅
- 날짜클래스
- Ant설치
- random
- MacTomcat
- 맥명령어
- 폴더재설정
- OutputStream
- 널포인트
- 터미널명령어
- InputStream
- 윈도우Ant
Archives
- Today
- Total
목록Calendar (1)
Platonic의 조금은 재밌는 일상
API 날짜 관련 클래스 Date, Calendar
날짜 관련 클래스 Date, Calendar날짜 관련해서 가장 많이 쓰이는 작업들 특정 날짜의 년,월,일,요일 확인하기 특정 월의 마지막 날짜 구하기 문자열을 Date/Calendar로 변환하기 날짜들 간의 시간 차이 구하기 Date는 더이상 쓰면 안된다.기존의 만들어 놓은 코드때문에 쓰이는 것이다.JDK 1.1 이 후부터 Calendar로 교체 되었다. public static void main(String[] args) { long current = System.currentTimeMillis(); System.out.println(current); Date today1 = new Date(); //Date는 예제. 쓰지 않는 편이 좋다. System.out.println(today1); //Date..
Programming 프로그래밍/Java
2015. 10. 27. 08:24