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 |
Tags
- 태그를 입력해 주세요.
- Ant설치
- 맥명령어
- 맥톰캣설치
- java
- githubblog
- OutputStream
- 터미널명령어
- 이클립스 ANt
- 입출력
- InputStream
- equals
- 널포인트
- 맥숨긴폴더
- githubpage
- API
- 날짜클래스
- auto boxing
- 맥Ant설치
- throws
- MacTomcat
- random
- 폴더재설정
- antbuild
- 랜덤클래스
- NullPointException
- 윈도우Ant
- 포맷팅
- 타이머테스크
- 맥단축키
Archives
- Today
- Total
목록랜덤클래스 (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