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
- Firebase
- Android Apk 이름 변경
- Eclipse
- java error
- Program type already present
- fragment
- CSS사용법
- spring
- MySQL
- 안드로이드
- FLUTTER
- release unsigned
- release Apk
- Exception
- Android Apk 이름
- css
- android fragment
- html
- DataTable
- Java
- tomcat
- error
- Kotlin
- jQuery
- Android Apk
- R프로그래밍
- Android
- apache gzip
- android error
- JavaScript
Archives
- Today
- Total
목록java calendar (1)
selfstarter
Java Calendar 쓸 때 유의 사항
Java Calendar 쓸 때 유의 사항 java Calendar를 쓸 때 date의 날짜를 Calendar에 넣어서 쓰려고 하는 경우 문제가 발생한다. Calenar의 month는 0부터 시작해서 그런지 date의 날짜를 그대로 넣으면 다음달로 출력된다. 예를들어 Date가 6월이면 0부터 시작하는 Calendar는 6이니까 7월로 인식하는 듯 하다 버그가 꽤 잘 나올 것 같다.. public class TestMain { public static void main(String[] args) { long now = System.currentTimeMillis(); final Date date = new Date(now); SimpleDateFormat simpleDateFormat = new Simp..
Server/Java
2020. 6. 25. 20:52