From 18a9ba2eaa86677147458220fd994f8a2b8dd7c9 Mon Sep 17 00:00:00 2001 From: WORKSHOP Date: Fri, 17 Jun 2022 04:28:56 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E5=8C=96=E3=81=91=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/src/com/tomi/Test1.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Test/src/com/tomi/Test1.java b/Test/src/com/tomi/Test1.java index 288ca6c..fe3204f 100644 --- a/Test/src/com/tomi/Test1.java +++ b/Test/src/com/tomi/Test1.java @@ -15,8 +15,7 @@ import org.junit.jupiter.api.Test; class Test1 { /** - * {@link HttpClient}のサンプル - * Java11から登場した{@link HttpClient}クラスを使ったHTTP通信のサンプルです + * {@link HttpClient}̃Tv */ @Test @@ -64,12 +63,12 @@ class Test1 { System.out.printf( "ld = %02d/%02d/%02d\n", ld.getYear(), ld.getMonthValue(), ld.getDayOfMonth() ); - System.out.printf( "%s から本日までの日付 = %d日\n", + System.out.printf( "%s {܂ł̓t = %d\n", ld.format(DateTimeFormatter.ofPattern("yyyy/MM/dd")), ChronoUnit.DAYS.between(ld, LocalDate.now())); LocalDateTime ldt = LocalDateTime.parse("2022-03-13 22:10:00", DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss")); - System.out.println( "2022-3-13 22:10:00のLocalDateTime=>"+ ldt.format(DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss"))); + System.out.println( "2022-3-13 22:10:00LocalDateTime=>"+ ldt.format(DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss"))); } } \ No newline at end of file -- 2.19.0