
작성하다가 보니 시간 변경과 비교하는걸 안 한 거 같아서 여기에 다시 작성함. 시간을 더하거나 빼는 것은 1편에서 plus** 또는 minus** 로 할 수 있음. 시간을 변경할 때는 with** 메서드로 변경할 수 있다. 시간 변경 private static void modifyDate() { LocalTime localTime = LocalTime.of(1, 15, 30) .withHour(1) //시간 변경 .withMinute(10) //분 변경 .withSecond(25) //초 변경 .withNano(100); //나노초 변경 System.out.println("localTime = " + localTime); LocalDate localDate = LocalDate.of(2021, 3, 25..
Java & Kotlin
2021. 3. 25. 19:11
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 오라클
- springboot
- elasticsearch
- localtime
- k8s
- Kotlin
- 베리 심플
- LocalDate
- maven
- Spring
- config-location
- input
- Mac
- JavaScript
- window
- Bash tab
- Linux
- rocky
- LocalDateTime
- 북리뷰
- intellij
- Java
- docker
- claude
- oracle
- mybatis
- jQuery
- svn
- mybatis config
- Spring Security
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함
반응형