Doc #79245 [Opn->Ver]: DateTime::RFC7231 not documented
| From: | cmb@php.net | Date: | Fri, 07 Feb 2020 20:24:06 +0000 |
| Subject: | Doc #79245 [Opn->Ver]: DateTime::RFC7231 not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17286@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79245&edit=1
ID: 79245
Updated by: cmb@php.net
Reported by: looksintolasers at gmail dot com
-Summary: Missing Documentation
+Summary: DateTime::RFC7231 not documented
-Status: Open
+Status: Verified
Type: Documentation Problem
-Package: *General Issues
+Package: Date/time related
Operating System: N/A
PHP Version: 7.4.2
Block user comment: N
Private report: N
New Comment:
Indeed, this constant is available as of PHP 7.0.19 and 7.1.15,
respectively.
Previous Comments:
------------------------------------------------------------------------
[2020-02-07 17:33:22] looksintolasers at gmail dot com
Description:
------------
---
From manual page: https://php.net/class.datetime
---
Using version 7.4.1 on Windows for development.
Missing documentation on one of the formatting constants available:
DateTime::RFC7231
This is an important one since it's the format for the HTTP Header "Last-Modified".
Example (Last-Modified: Tue, 15 Nov 1994 12:45:26 GMT)
Test script:
---------------
<?php
$date = new DateTime();
echo $date->format(DateTime::RFC7231); // Works, but not documented.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79245&edit=1