Doc #75589 [Opn->Nab]: RFC3336_EXTENDED format with v
| From: | peehaa@php.net | Date: | Wed, 29 Nov 2017 14:44:54 +0000 |
| Subject: | Doc #75589 [Opn->Nab]: RFC3336_EXTENDED format with v | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15262@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75589&edit=1
ID: 75589
Updated by: peehaa@php.net
Reported by: dan dot milligan at psikick dot com
Summary: RFC3336_EXTENDED format with v
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: 5.6.32
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Specifically the description of the DateTime::RFC3339_EXTENDED constant:
> RFC 3339 EXTENDED format (since PHP 7.0.0) (example: 2005-08-15T15:52:01.000+00:00)
And the description for the formats on the date docs page: http://php.net/manual/en/function.date.php
Previous Comments:
------------------------------------------------------------------------
[2017-11-29 14:08:39] dan dot milligan at psikick dot com
Description:
------------
---
From manual page: http://www.php.net/class.datetime
---
The format for the RFC3336_EXTENDED is shown as follows:
const string RFC3339_EXTENDED = "Y-m-d\TH:i:s.vP" ;
Should the .v be .u for microseconds? In practice w/ 5.6.32 on the PI it throws an error w/ a .v
Test script:
---------------
$dateTime = new DateTime();
$dateTime.format("Y-m-d\TH:i:s.vP");
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75589&edit=1