<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <a0:anchor>IMAP</a0:anchor> で使われる日付形式は、同じ<a0:anchor>電子メイル</a0:anchor>関係で使われる形式である
<a0:anchor>RFC2822の日付形式</a0:anchor>にもやや似ていますが、
微妙に異なり、互換性はありません。</p><a0:refs><ul><li><a0:anchor-end a0:anchor="5">[5]</a0:anchor-end> 
<cite xml:lang="en">RFC 3501 - INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1</cite> (<time>2018-02-01 03:51:41 +09:00</time>) <a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc3501#page-85">https://tools.ietf.org/html/rfc3501#page-85</a0:anchor-external></li><li><a0:anchor-end a0:anchor="6">[6]</a0:anchor-end> <cite xml:lang="en">RFC 2060 - Internet Message Access Protocol - Version 4rev1</cite> (<time>2018-01-28 19:02:32 +09:00</time>) <a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc2060#page-68">https://tools.ietf.org/html/rfc2060#page-68</a0:anchor-external></li></ul></a0:refs><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end> RFC 3501 ABNF 抜粋 : <ul><li>date            = date-text / DQUOTE date-text DQUOTE</li><li>date-day        = 1*2DIGIT ; Day of month</li><li>date-day-fixed  = (SP DIGIT) / 2DIGIT ; Fixed-format version of date-day</li><li>date-month      = &quot;Jan&quot; / &quot;Feb&quot; / &quot;Mar&quot; / &quot;Apr&quot; / &quot;May&quot; / &quot;Jun&quot; / &quot;Jul&quot; / &quot;Aug&quot; / &quot;Sep&quot; / &quot;Oct&quot; / &quot;Nov&quot; / &quot;Dec&quot;</li><li>date-text       = date-day &quot;-&quot; date-month &quot;-&quot; date-year</li><li>date-year       = 4DIGIT</li><li>date-time       = DQUOTE date-day-fixed &quot;-&quot; date-month &quot;-&quot; date-year SP time SP zone DQUOTE</li><li>time            = 2DIGIT &quot;:&quot; 2DIGIT &quot;:&quot; 2DIGIT ; Hours minutes seconds</li><li>zone            = (&quot;+&quot; / &quot;-&quot;) 4DIGIT<pre>          ; Signed four-digit value of hhmm representing
          ; hours and minutes east of Greenwich (that is,
          ; the amount that the given time differs from
          ; Universal Time).  Subtracting the timezone
          ; from the given time will give the UT form.
          ; The Universal Time zone is &quot;+0000&quot;.</pre></li></ul></p><p><a0:anchor-end a0:anchor="4">[4]</a0:anchor-end> 
<code class="ABNF">date-text</code> は必ずしも固定長ではなく、
<code class="ABNF">date-time</code> は必ず固定長になります。
どちらの定義が使われるかは場面によります。</p><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> 例 : <ul><li><samp class="IMAP">17-Jul-1996 02:44:25 -0700</samp></li></ul></p><p><a0:anchor-end a0:anchor="12">[12]</a0:anchor-end> <a0:anchor>時間帯</a0:anchor>については<a0:anchor>インターネットメールの時間帯表記</a0:anchor>も参照。</p><figure class="quote"><figcaption><a0:anchor-end a0:anchor="7">[7]</a0:anchor-end> <cite xml:lang="en">RFC 1064 - Interactive Mail Access Protocol: Version 2</cite>
(<time>2018-02-04 11:06:30 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc1064#page-24">https://tools.ietf.org/html/rfc1064#page-24</a0:anchor-external></figcaption><blockquote><p>date            ::= string in form &quot;dd-mmm-yy hh:mm:ss-zzz&quot;</p></blockquote></figure><figure class="quote"><figcaption><a0:anchor-end a0:anchor="8">[8]</a0:anchor-end> <cite xml:lang="en">RFC 1176 - Interactive Mail Access Protocol: Version 2</cite>
(<time>2018-01-21 21:01:02 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc1176#page-26">https://tools.ietf.org/html/rfc1176#page-26</a0:anchor-external></figcaption><blockquote><p>date            ::= string in form &quot;dd-mmm-yy hh:mm:ss-zzz&quot;</p></blockquote></figure><figure class="quote"><figcaption><a0:anchor-end a0:anchor="9">[9]</a0:anchor-end> <cite xml:lang="en">RFC 1176 - Interactive Mail Access Protocol: Version 2</cite>
(<time>2018-01-21 21:01:02 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc1176#page-22">https://tools.ietf.org/html/rfc1176#page-22</a0:anchor-external></figcaption><blockquote><p>InternalDate &quot; 9-Jun-88 12:55:44 PDT&quot;</p></blockquote></figure><figure class="quote"><figcaption><a0:anchor-end a0:anchor="10">[10]</a0:anchor-end> <cite xml:lang="en">RFC 1203 - Interactive Mail Access Protocol: Version 3</cite>
(<time>2018-01-23 00:10:54 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://tools.ietf.org/html/rfc1203#page-38">https://tools.ietf.org/html/rfc1203#page-38</a0:anchor-external></figcaption><blockquote><p>date            ::= string in form &quot;dd-mmm-yy hh:mm:ss-zzz&quot;</p></blockquote></figure><figure class="quote"><figcaption><a0:anchor-end a0:anchor="11">[11]</a0:anchor-end> (<time>1992-12-12 09:00:00 +09:00</time>)
<a0:anchor-external a0:resScheme="URI" a0:resParameter="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/mail/old/IMAP2bis.TXT">https://www.mirrorservice.org/sites/ftp.cac.washington.edu/mail/old/IMAP2bis.TXT</a0:anchor-external></figcaption><blockquote><p>date            ::= date_new / date_old</p><p>date_new        ::= string in form &quot;dd-mmm-yyyy hh:mm:ss -zzzz&quot;</p><p>date_old        ::= string in form &quot;dd-mmm-yy hh:mm:ss-zzz&quot;</p><p>In date_new, the year is now a 4-digit year, and the timezone is a</p><p>signed four-digit value of hhmm representing hours and minutes west</p><p>of Greenwich (that is, the amount that the given time differs from</p><p>Universal Time).  Subtracting the timezone from the given time will</p><p>give the UT form.</p><p>Universal Time is expressed as &quot;+0000&quot;.</p><p>date_old is hereby declared obsolete, and its usage in new software</p><p>is STRONGLY discouraged.  However, client implementations MUST</p><p>recognize and properly parse it.</p><p>RFC-1176 documents the argument to the SEARCH criteria BEFORE, ON, and</p><p>SINCE as being either &quot;date&quot; in the text and &quot;string&quot; in the BNF.</p><p>These SEARCH criteria arguments are hereby amended to be &quot;day&quot;, with</p><p>the following syntax:</p><p>day             ::= day_new / day_old</p><p>day_new         ::= string in form &quot;dd-mmm-yyyy&quot;</p><p>day_old         ::= string in form &quot;dd-mmm-yy&quot;</p><p>day_old is hereby declared obsolete, and its usage in new software</p><p>is STRONGLY discouraged.  However, server implementations MUST</p><p>recognize and properly parse it.</p></blockquote></figure></body></html>