回答編集履歴
2
追記
test
CHANGED
@@ -44,8 +44,12 @@
|
|
44
44
|
|
45
45
|
今から覚えるなら、`SimpleDateFormat`のことは参考程度に留めて`java.time.format.DateTimeFormatter`を使ってくださいな。
|
46
46
|
|
47
|
+
|
48
|
+
|
47
49
|
◇参考情報
|
48
50
|
|
49
51
|
0. [Java8の日時APIはとりあえずこれだけ覚えとけ](https://qiita.com/tag1216/items/91a471b33f383981bfaa)
|
50
52
|
|
51
53
|
0. [DateTimeFormatter](https://docs.oracle.com/javase/jp/8/docs/api/java/time/format/DateTimeFormatter.html)
|
54
|
+
|
55
|
+
0. [日付時刻フォーマッター](http://www.ne.jp/asahi/hishidama/home/tech/java/DateTimeFormatter.html)
|
1
追記
test
CHANGED
@@ -14,9 +14,11 @@
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
+
> SimpleDateFormat f = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
|
17
18
|
|
18
19
|
|
20
|
+
|
19
|
-
|
21
|
+
[SimpleDateFormat](https://docs.oracle.com/javase/jp/8/docs/api/java/text/SimpleDateFormat.html)の日時パターンの解説より
|
20
22
|
|
21
23
|
|
22
24
|
|
@@ -38,8 +40,6 @@
|
|
38
40
|
|
39
41
|
|
40
42
|
|
41
|
-
|
42
|
-
|
43
43
|
---
|
44
44
|
|
45
45
|
今から覚えるなら、`SimpleDateFormat`のことは参考程度に留めて`java.time.format.DateTimeFormatter`を使ってくださいな。
|