Skip to content

Commit

Permalink
Add missing type for DATE_* constants (#4236)
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias authored Dec 3, 2024
1 parent 965e20a commit 26c2a15
Showing 1 changed file with 63 additions and 21 deletions.
84 changes: 63 additions & 21 deletions reference/datetime/constants.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@
</varlistentry>
</variablelist>

<variablelist role="constant_list">
<variablelist>
<title><constant>DATE_<replaceable>*</replaceable></constant> constants</title>
<varlistentry xml:id="constant.date-atom">
<term><constant>DATE_ATOM</constant></term>
<term>
<constant>DATE_ATOM</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
Atom (example: <literal>2005-08-15T15:52:01+00:00</literal>)
Expand All @@ -71,7 +74,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-cookie">
<term><constant>DATE_COOKIE</constant></term>
<term>
<constant>DATE_COOKIE</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
HTTP Cookies (example: <literal>Monday, 15-Aug-2005 15:52:01 UTC</literal>)
Expand All @@ -80,7 +86,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-iso8601">
<term><constant>DATE_ISO8601</constant></term>
<term>
<constant>DATE_ISO8601</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
ISO-8601 (example: <literal>2005-08-15T15:52:01+0000</literal>)
Expand All @@ -98,7 +107,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-iso8601-expanded">
<term><constant>DATE_ISO8601_EXPANDED</constant></term>
<term>
<constant>DATE_ISO8601_EXPANDED</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
ISO-8601 Expanded (example: <literal>+10191-07-26T08:59:52+01:00</literal>)
Expand All @@ -115,7 +127,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc822">
<term><constant>DATE_RFC822</constant></term>
<term>
<constant>DATE_RFC822</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 822 (example: <literal>Mon, 15 Aug 05 15:52:01 +0000</literal>)
Expand All @@ -124,7 +139,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc850">
<term><constant>DATE_RFC850</constant></term>
<term>
<constant>DATE_RFC850</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 850 (example: <literal>Monday, 15-Aug-05 15:52:01 UTC</literal>)
Expand All @@ -133,7 +151,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc1036">
<term><constant>DATE_RFC1036</constant></term>
<term>
<constant>DATE_RFC1036</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 1036 (example: <literal>Mon, 15 Aug 05 15:52:01 +0000</literal>)
Expand All @@ -142,7 +163,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc1123">
<term><constant>DATE_RFC1123</constant></term>
<term>
<constant>DATE_RFC1123</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 1123 (example: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>)
Expand All @@ -151,17 +175,23 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc7231">
<term><constant>DATE_RFC7231</constant></term>
<listitem>
<simpara>
RFC 7231 (as of PHP 7.0.19 and 7.1.5)
(example: <literal>Sat, 30 Apr 2016 17:52:13 GMT</literal>)
</simpara>
</listitem>
<term>
<constant>DATE_RFC7231</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 7231 (as of PHP 7.0.19 and 7.1.5)
(example: <literal>Sat, 30 Apr 2016 17:52:13 GMT</literal>)
</simpara>
</listitem>
</varlistentry>

<varlistentry xml:id="constant.date-rfc2822">
<term><constant>DATE_RFC2822</constant></term>
<term>
<constant>DATE_RFC2822</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 2822 (example: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>)
Expand All @@ -170,7 +200,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc3339">
<term><constant>DATE_RFC3339</constant></term>
<term>
<constant>DATE_RFC3339</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
Same as <constant>DATE_ATOM</constant>.
Expand All @@ -179,7 +212,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rfc3339-extended">
<term><constant>DATE_RFC3339_EXTENDED</constant></term>
<term>
<constant>DATE_RFC3339_EXTENDED</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RFC 3339 EXTENDED format
Expand All @@ -189,7 +225,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-rss">
<term><constant>DATE_RSS</constant></term>
<term>
<constant>DATE_RSS</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
RSS (example: <literal>Mon, 15 Aug 2005 15:52:01 +0000</literal>).
Expand All @@ -199,7 +238,10 @@
</varlistentry>

<varlistentry xml:id="constant.date-w3c">
<term><constant>DATE_W3C</constant></term>
<term>
<constant>DATE_W3C</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
World Wide Web Consortium (example: <literal>2005-08-15T15:52:01+00:00</literal>).
Expand Down

0 comments on commit 26c2a15

Please sign in to comment.