From 26c2a159a4a875a29cd528aad16ea2c1c1051bd2 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Tue, 3 Dec 2024 21:59:22 +0000 Subject: [PATCH] Add missing type for DATE_* constants (#4236) --- reference/datetime/constants.xml | 84 ++++++++++++++++++++++++-------- 1 file changed, 63 insertions(+), 21 deletions(-) diff --git a/reference/datetime/constants.xml b/reference/datetime/constants.xml index 8d2d5d19e175..fb3cc9364009 100644 --- a/reference/datetime/constants.xml +++ b/reference/datetime/constants.xml @@ -59,10 +59,13 @@ - + <constant>DATE_<replaceable>*</replaceable></constant> constants - DATE_ATOM + + DATE_ATOM + (string) + Atom (example: 2005-08-15T15:52:01+00:00) @@ -71,7 +74,10 @@ - DATE_COOKIE + + DATE_COOKIE + (string) + HTTP Cookies (example: Monday, 15-Aug-2005 15:52:01 UTC) @@ -80,7 +86,10 @@ - DATE_ISO8601 + + DATE_ISO8601 + (string) + ISO-8601 (example: 2005-08-15T15:52:01+0000) @@ -98,7 +107,10 @@ - DATE_ISO8601_EXPANDED + + DATE_ISO8601_EXPANDED + (string) + ISO-8601 Expanded (example: +10191-07-26T08:59:52+01:00) @@ -115,7 +127,10 @@ - DATE_RFC822 + + DATE_RFC822 + (string) + RFC 822 (example: Mon, 15 Aug 05 15:52:01 +0000) @@ -124,7 +139,10 @@ - DATE_RFC850 + + DATE_RFC850 + (string) + RFC 850 (example: Monday, 15-Aug-05 15:52:01 UTC) @@ -133,7 +151,10 @@ - DATE_RFC1036 + + DATE_RFC1036 + (string) + RFC 1036 (example: Mon, 15 Aug 05 15:52:01 +0000) @@ -142,7 +163,10 @@ - DATE_RFC1123 + + DATE_RFC1123 + (string) + RFC 1123 (example: Mon, 15 Aug 2005 15:52:01 +0000) @@ -151,17 +175,23 @@ - DATE_RFC7231 - - - RFC 7231 (as of PHP 7.0.19 and 7.1.5) - (example: Sat, 30 Apr 2016 17:52:13 GMT) - - + + DATE_RFC7231 + (string) + + + + RFC 7231 (as of PHP 7.0.19 and 7.1.5) + (example: Sat, 30 Apr 2016 17:52:13 GMT) + + - DATE_RFC2822 + + DATE_RFC2822 + (string) + RFC 2822 (example: Mon, 15 Aug 2005 15:52:01 +0000) @@ -170,7 +200,10 @@ - DATE_RFC3339 + + DATE_RFC3339 + (string) + Same as DATE_ATOM. @@ -179,7 +212,10 @@ - DATE_RFC3339_EXTENDED + + DATE_RFC3339_EXTENDED + (string) + RFC 3339 EXTENDED format @@ -189,7 +225,10 @@ - DATE_RSS + + DATE_RSS + (string) + RSS (example: Mon, 15 Aug 2005 15:52:01 +0000). @@ -199,7 +238,10 @@ - DATE_W3C + + DATE_W3C + (string) + World Wide Web Consortium (example: 2005-08-15T15:52:01+00:00).