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
- springboot
- intellijIDEA
- docker
- tibero
- MySQL
- Kubernetes
- JavaScript
- kubectl
- nodejs
- useEffect
- IntelliJ
- Windows
- Java
- react
- gson
- mybatis
- Spring
- jetbrains
- BPMN
- log4j2
- nginx
- Git
- wildfly
- database
- NCP
- JPA
- VSCode
- dbeaver
- LOG4J
- gradle
Archives
- Today
- Total
두 손끝의 창조자
String 일시를 LocalDateTime, Instant 로 변환 본문
String date = "20220615052111";
LocalDateTime parse = LocalDateTime.parse(date, DateTimeFormatter.ofPattern("yyyyMMddHHmmss"));
System.out.println(parse);
Instant instant = parse.atZone(ZoneId.systemDefault()).toInstant();
System.out.println(instant);
System.out.println(LocalDateTime.ofInstant(instant, ZoneId.systemDefault()));
System.out.println(ZoneId.systemDefault());
반응형
Comments