]> git.donarmstrong.com Git - debian/debian-policy.git/commitdiff
Specification of date format -- bug #569174.
authorCharles Plessy <plessy@debian.org>
Tue, 1 Jun 2010 01:27:39 +0000 (10:27 +0900)
committerRuss Allbery <rra@debian.org>
Fri, 4 Jun 2010 16:58:13 +0000 (09:58 -0700)
RFC 822 dates use only two digits for the years, but Debian changelogs
described by this paragraph (ยง4.4 in Policy 3.8.4) use four digits.

This patch replaces the reference to the RFC 822 by a specification that is
compatible with its successors, RFC 2822 and RFC 5322, but does not use their
full range of options.

policy.sgml

index 7c223101cea76fa78dffb94849d33ca15993f9f7..f0719b95c8beecb8a965ee6bbf05fd70e7e7f601 100644 (file)
        </p>
 
        <p>
-         The <var>date</var> must be in RFC822 format<footnote>
+         The <var>date</var> has the following format<footnote>
              This is generated by <tt>date -R</tt>.
-         </footnote>; it must include the time zone specified
-         numerically, with the time zone name or abbreviation
-         optionally present as a comment in parentheses.
+         </footnote> (compatible and with the same semantics of
+         RFC 2822 and RFC 5322):
+         <example>day-of-week, dd month yyyy hh:mm:ss +zzzz</example>
+         where: 
+         <list compact="compact">
+           <item>day-of week is one of: Mon, Tue, Wed, Thu, Fri, Sat, Sun</item>
+           <item>dd is a one- or two-digit day of the month (01-31)</item>
+           <item>month is one of: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec</item>
+           <item>yyyy is the four-digit year (e.g. 2010)</item>
+           <item>hh is the two-digit hour (00-23</item>
+           <item>mm is the two-digit minutes (00-59)</item>
+           <item>ss is the two-digit seconds (00-60)</item>
+           <item>
+             +zzzz or -zzzz is the the time zone offset from Coordinated Universal
+             Time (UTC).  "+" indicates that the time is ahead of (i.e., east of) UTC
+             and "-" indicates that the time is behind (i.e., west of) UTC.  The
+             first two digits indicate the hour difference from UTC and the last
+             two digits indicate the number of additional minutes difference from
+             UTC.  The last two digits must be in the range 00-59.
+           </item>
+         </list>
        </p>
 
        <p>