回答編集履歴
1
ZZZZZ
answer
CHANGED
@@ -2,5 +2,10 @@
|
|
2
2
|
**[8 Date Format Patterns](http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns)**
|
3
3
|
|
4
4
|
を参照して下さい。
|
5
|
+
これを見ると、`Z`ではなく`ZZZZZ`が正解だと思います。
|
5
6
|
|
6
|
-
|
7
|
+
ISO 8601の場合は [ISO8601DateFormatter](https://developer.apple.com/documentation/foundation/iso8601dateformatter) を使う方がいいです。
|
8
|
+
|
9
|
+
[DateFormatter](https://developer.apple.com/documentation/foundation/dateformatter)より
|
10
|
+
> **Important**
|
11
|
+
In macOS 10.12 and later or iOS 10 and later, use the ISO8601DateFormatter class when working with ISO 8601 date representations.
|