回答編集履歴

2

質問文に合わせ修正

2017/06/27 04:57

投稿

mattn
mattn

スコア5030

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  // 日付を +1 して時を 9、分を 0 に
18
18
 
19
- now = now.plusDays(1).withHour(9).withMinute(0).withSecond(0).withNano(0);
19
+ now = now = now.plusHours(15).withHour(9).withMinute(0).withSecond(0).withNano(0);
20
20
 
21
21
  System.out.println(now);
22
22
 

1

修正

2017/06/27 04:57

投稿

mattn
mattn

スコア5030

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  // 日付を +1 して時を 9、分を 0 に
18
18
 
19
- now = now.plusDays(1).withHour(9).withMinute(0);
19
+ now = now.plusDays(1).withHour(9).withMinute(0).withSecond(0).withNano(0);
20
20
 
21
21
  System.out.println(now);
22
22