<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO 8601:2004</anchor> の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">日時表現</anchor>の構文 + <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO 8601:2000</anchor> にあって 2004年版で削除された構文 + 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">JIS X 0301</anchor> で追加されている構文を <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ABNF</anchor> で表したものです。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;1</anchor-internal> の各仕様によって認められる値は <code class="ABNF" xml:lang="en">date-time-representation</code> に一致するはずです。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ABNF</anchor> で表現できない/していない制約があるので、一致するからといって適合するとは限りません。</p><figure class="important"><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 
この構文が<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">規定</anchor>と一致するかどうかは不確かです。
構文の詳細は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO 8601の日時形式</anchor>をご参照ください。</p></figure><pre class="ABNF code">date-time-representation = date
                         / local-time / utc-time / time-with-offset
                         / date-time
                         / interval
                         / recursing-interval

date = calendar-date / ordinal-date / week-date / jp-date
calendar-date = year opt-hyphen month opt-hyphen day
              / year opt-hyphen month
              / year
              / century
              / obs-calendar-date
obs-calendar-date = century-year opt-hyphen month opt-hyphen day
                  / prefix-hyphen century-year opt-hyphen month
                  / prefix-hyphen century-year
                  / prefix-hyphen prefix-hyphen month opt-hyphen day
                  / prefix-hyphen prefix-hyphen prefix-hyphen day
ordinal-date = year opt-hyphen ordinal-day
             / obs-ordinal-date
obs-ordinal-date = century-year opt-hyphen ordinal-day
                 / prefix-hyphen ordinal-day
week-date = year opt-hyphen week opt-hyphen week-day
          / year opt-hyphen week
          / obs-week-date
obs-week-date = century-year opt-hyphen week opt-hyphen week-day
              / century-year opt-hyphen week
              / prefix-hyphen decard-year opt-hyphen week opt-hyphen week-day
              / prefix-hyphen decard-year opt-hyphen week
              / prefix-hyphen week opt-hyphen week-day
              / prefix-hyphen week
              / prefix-hyphen W prefix-hyphen week-day
jp-date = opt-gengou jp-year dot month dot day
time = hms
     / obs-time
obs-time = prefix-hyphen minute opt-colon second [fraction]
         / prefix-hyphen minute [fraction]
         / prefix-hyphen prefix-hyphen second [fraction]
hms = hour opt-colon minute opt-colon second [fraction]
    / hour opt-colon minute [fraction]
    / hour [fraction]
local-time = [T] time
utc-time = time Z
time-with-offset = time offset
offset = sign hour opt-colon minute
       / sign hour
zone = [Z / offset]

date-time = year opt-hyphen month opt-hyphen day opt-T hms zone
          / year opt-hyphen ordinal-day opt-T hms zone

year = 4DIGIT / sign 4*DIGIT
century = 2DIGIT / sign 2*DIGIT
century-year = 2DIGIT
decard-year = DIGIT
jp-year = 2DIGIT
month = 2DIGIT ;; 01-12
day = 2DIGIT ;; 01-days of month
ordinal-day = 3DIGIT ;; 001-days of year
week = W 2DIGIT ;; 01-weeks of year
week-day = DIGIT ;; 1-7
hour = 2DIGIT ;; 00-24
minute = 2DIGIT ;; 00-59
second = 2DIGIT ;; 00-60
fraction = decimal 1*DIGIT

opt-hyphen = [hyphen]
prefix-hyphen = [hyphen]
opt-gengou = [gengou]
opt-colon = [colon]
opt-T = [T]

duration = P n W
         / P [n Y] [n M] [n D] [T [n H] [n M] [n S]]
         / duration-alt
duration-alt = P duration-year opt-hyphen duration-month opt-hyphen duration-day [duration-alt-time]
             / P duration-year opt-hyphen duration-month
             / P duration-year opt-hyphen duration-ordial-day [duration-alt-time]
             / P duration-year
duration-alt-time = opt-T duration-hour opt-colon duration-minute opt-colon duration-second [fraction]
                  / opt-T duration-hour opt-colon duration-minute [fraction]
                  / opt-T duration-hour [fraction]

n = 1*DIGIT [fraction]
duration-year = 4DIGIT / sign 4*DIGIT
duration-month = 2DIGIT ;; 00-11
duration-day = 2DIGIT ;; 00-29
duration-ordinal-day = 3DIGIT ;; 000-355
duration-hour = 2DIGIT ;; 00-23
duration-minute = 2DIGIT ;; 00-59
duration-second = 2DIGIT ;; 00-59

interval = interval-start-end / interval-duration / interval-start-duration / interval-duration-end
interval-start-end = date-time slash end-date-time
interval-duration = duration
interval-start-duration = date-time slash duration
interval-duration-end = duration slash date-time
end-date-time = date-time
              / month opt-hyphen day opt-T hms zone
              / day opt-T hms zone
              / ordinal-day opt-T hms zone
              / opt-T hms zone

recurring-interval = R [n] slash interval

sign = &quot;+&quot; / minus
minus = &quot;-&quot; / &lt;MINUS SIGN&gt;
hyphen = &quot;-&quot; / &lt;HYPHEN&gt;
dot = &quot;.&quot;
colon = &quot;:&quot;
decimal = &quot;.&quot; / &quot;,&quot;
slash = &quot;/&quot; / &lt;DOUBLE HYPHEN&gt;
D = &quot;D&quot;
H = &quot;H&quot;
M = &quot;M&quot;
P = &quot;P&quot;
R = &quot;R&quot;
S = &quot;S&quot;
W = &quot;W&quot;
T = &quot;T&quot;
Y = &quot;Y&quot;
Z = &quot;Z&quot;
gengou = &quot;H&quot; / &quot;S&quot; / &quot;T&quot; / &quot;M&quot; / &quot;平&quot; / &quot;昭&quot; / &quot;大&quot; / &quot;明&quot;</pre><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 3339</anchor> の附属書にも、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO 8601:1988</anchor> に基づく <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ABNF</anchor> があります。</comment-p></body></html>