diff --git a/Test/src/com/tomi/Test1.java b/Test/src/com/tomi/Test1.java index 288ca6c3980343ed558d9818c1de731dc6fd08ee..fe3204f2d933ff8cd9f2dc8086f4ec281b56e7fa 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