@@ -74,6 +74,7 @@ namespace std {
7474```cpp example
7575#include <iostream>
7676#include <fstream>
77+ #include <chrono>
7778#include <filesystem>
7879#include <fstream>
7980
@@ -85,7 +86,7 @@ int main()
8586 std::ofstream{"regular.txt"};
8687
8788 // ファイルの最終更新日時を取得して出力
88- fs::file_time_type tp = fs::last_write_time("regulat .txt");
89+ fs::file_time_type tp = fs::last_write_time("regular .txt");
8990 std::cout << tp << std::endl;
9091}
9192```
@@ -94,7 +95,7 @@ int main()
9495
9596#### 出力例
9697```
97- 2019-10-24 11:15:10 UTC
98+ 2019-10-24 11:15:10
9899```
99100
100101### 入力の例
@@ -128,12 +129,12 @@ int main()
128129 // タイムゾーンとオフセットを含む入力
129130 {
130131 std::stringstream ss;
131- ss << "2019-10-24 20:15:10 UTC+0900";
132+ ss << "2019-10-24 20:15:10 UTC +0900";
132133
133134 fs::file_time_type tp;
134135 std::string abbrev;
135136 chrono::minutes offset{0};
136- chrono::from_stream(ss, "%Y-%m-%d %H:%M:%S %Z%z", tp, &abbrev, &offset);
137+ chrono::from_stream(ss, "%Y-%m-%d %H:%M:%S %Z %z", tp, &abbrev, &offset);
137138
138139 std::cout << tp << std::endl;
139140 std::cout << abbrev << std::endl;
@@ -146,8 +147,8 @@ int main()
146147
147148#### 出力例
148149```
149- 2019-10-24 11:15:10 UTC
150- 2019-10-24 11:15:10 UTC
150+ 2019-10-24 11:15:10
151+ 2019-10-24 11:15:10
151152UTC
152153540
153154```
@@ -168,7 +169,7 @@ int main()
168169 std::ofstream{"regular.txt"};
169170
170171 // ファイルの最終更新日時を取得して出力
171- fs::file_time_type tp = fs::last_write_time("regulat .txt");
172+ fs::file_time_type tp = fs::last_write_time("regular .txt");
172173
173174 // デフォルトフォーマット
174175 std::cout << std::format("1 : {}", tp) << std::endl;
@@ -194,7 +195,7 @@ int main()
194195
195196#### 出力例
196197```
197- 1 : 2019-12-20 10:05:00 UTC
198+ 1 : 2019-12-20 10:05:00
1981992 : 2019年12月20日 10時05分05秒
1992003 : 2019/12/20 10:05:05
2002014 : 2019年12月20日
@@ -210,7 +211,7 @@ int main()
210211
211212### 処理系
212213- [ Clang] ( /implementation.md#clang ) : 9.0 [ mark noimpl]
213- - [ GCC] ( /implementation.md#gcc ) : 9.2 [ mark noimpl]
214+ - [ GCC] ( /implementation.md#gcc ) : 9.2 [ mark noimpl] , 15.1 [ mark verified ]
214215- [ Visual C++] ( /implementation.md#visual_cpp ) : 2019 Update 3 [ mark noimpl]
215216
216217
0 commit comments