From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/http/headers/date/index.html | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 files/ja/web/http/headers/date/index.html (limited to 'files/ja/web/http/headers/date') diff --git a/files/ja/web/http/headers/date/index.html b/files/ja/web/http/headers/date/index.html new file mode 100644 index 0000000000..01d7cf1bde --- /dev/null +++ b/files/ja/web/http/headers/date/index.html @@ -0,0 +1,100 @@ +--- +title: Date +slug: Web/HTTP/Headers/Date +tags: + - HTTP + - Reference + - ヘッダー + - リファレンス + - 一般ヘッダー + - 汎用ヘッダー +translation_of: Web/HTTP/Headers/Date +--- +
{{HTTPSidebar}}
+ +

Date 一般 HTTP ヘッダーには、メッセージが発信された日時が含まれています。

+ +
+

Date は fetch 仕様書において禁止ヘッダー名に挙げられています。 - そのため、このコードは Date ヘッダーを送信しません。

+ +
fetch('https://httpbin.org/get', {
+    'headers': {
+        'Date': (new Date()).toUTCString()
+    }
+})
+
+ + + + + + + + + + + + +
ヘッダー種別{{Glossary("General header", "一般ヘッダー")}}
{{Glossary("Forbidden header name", "禁止ヘッダー名")}}はい
+ +

構文

+ +
Date: <day-name>, <day> <month> <year> <hour>:<minute>:<second> GMT
+
+ +

ディレクティブ

+ +
+
<day-name>
+
"Mon"、"Tue"、"Wed"、"Thu"、"Fri"、"Sat"、"Sun" のいずれか (大文字小文字を区別)。
+
<day>
+
2桁の日番号。例えば "04" または "23"。
+
<month>
+
"Jan"、"Feb"、"Mar"、"Apr"、"May"、"Jun"、"Jul"、"Aug"、"Sep"、 "Oct"、"Nov"、"Dec" のいずれか (大文字と小文字を区別)。
+
<year>
+
4桁の年の数字。たとえば "1990" または "2016"。
+
<hour>
+
2桁の時の数字。たとえば "09" または "23"。
+
<minute>
+
2桁の分の数字。たとえば "04" または "59"。
+
<second>
+
2桁の秒の数字。たとえば "04" または "59"。
+
GMT
+
+

グリニッジ標準時。HTTP の日付は常に GMT で表され、決して現地時間で表されることはありません。

+
+
+ +

+ +
Date: Wed, 21 Oct 2015 07:28:00 GMT
+
+ +

仕様書

+ + + + + + + + + + + + + + +
仕様書題名
{{RFC("7231", "Date", "7.1.1.2")}}Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
+ +

ブラウザーの互換性

+ + + +

{{Compat("http.headers.Date")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf