aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/http/headers/date
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/http/headers/date
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/http/headers/date')
-rw-r--r--files/ja/web/http/headers/date/index.html100
1 files changed, 100 insertions, 0 deletions
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
+---
+<div>{{HTTPSidebar}}</div>
+
+<p><strong><code>Date</code></strong> 一般 HTTP ヘッダーには、メッセージが発信された日時が含まれています。</p>
+
+<div class="blockIndicator warning">
+<p><code>Date</code> は fetch 仕様書において<a href="https://fetch.spec.whatwg.org/#forbidden-header-name" rel="nofollow noreferrer">禁止ヘッダー名</a>に挙げられています。 - そのため、このコードは <code>Date</code> ヘッダーを送信しません。</p>
+
+<pre class="brush: js">fetch('https://httpbin.org/get', {
+ 'headers': {
+ 'Date': (new Date()).toUTCString()
+ }
+})</pre>
+</div>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">ヘッダー種別</th>
+ <td>{{Glossary("General header", "一般ヘッダー")}}</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("Forbidden header name", "禁止ヘッダー名")}}</th>
+ <td>はい</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox">Date: &lt;day-name&gt;, &lt;day&gt; &lt;month&gt; &lt;year&gt; &lt;hour&gt;:&lt;minute&gt;:&lt;second&gt; GMT
+</pre>
+
+<h2 id="Directives" name="Directives">ディレクティブ</h2>
+
+<dl>
+ <dt>&lt;day-name&gt;</dt>
+ <dd>"Mon"、"Tue"、"Wed"、"Thu"、"Fri"、"Sat"、"Sun" のいずれか (大文字小文字を区別)。</dd>
+ <dt>&lt;day&gt;</dt>
+ <dd>2桁の日番号。例えば "04" または "23"。</dd>
+ <dt>&lt;month&gt;</dt>
+ <dd>"Jan"、"Feb"、"Mar"、"Apr"、"May"、"Jun"、"Jul"、"Aug"、"Sep"、 "Oct"、"Nov"、"Dec" のいずれか (大文字と小文字を区別)。</dd>
+ <dt>&lt;year&gt;</dt>
+ <dd>4桁の年の数字。たとえば "1990" または "2016"。</dd>
+ <dt>&lt;hour&gt;</dt>
+ <dd>2桁の時の数字。たとえば "09" または "23"。</dd>
+ <dt>&lt;minute&gt;</dt>
+ <dd>2桁の分の数字。たとえば "04" または "59"。</dd>
+ <dt>&lt;second&gt;</dt>
+ <dd>2桁の秒の数字。たとえば "04" または "59"。</dd>
+ <dt>GMT</dt>
+ <dd>
+ <p>グリニッジ標準時。HTTP の日付は常に GMT で表され、決して現地時間で表されることはありません。</p>
+ </dd>
+</dl>
+
+<h2 id="Examples" name="Examples">例</h2>
+
+<pre>Date: Wed, 21 Oct 2015 07:28:00 GMT
+</pre>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">題名</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{RFC("7231", "Date", "7.1.1.2")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<p class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</p>
+
+<p>{{Compat("http.headers.Date")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{HTTPHeader("Age")}}</li>
+</ul>