php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69687 Undocumented date format YY"W"w
Submitted: 2015-05-22 01:54 UTC Modified: 2015-05-22 02:07 UTC
From: marksolly at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marksolly at gmail dot com
New email:
PHP Version: OS:

 

 [2015-05-22 01:54 UTC] marksolly at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/datetime.formats.date
---

Used Symbols table is missing the "ww" symbol. This denotes the ISO-8601 week number.

ISO8601 Notations table is missing the YY"W"ww notation.

Example: 2012W46 = 2012-11-12T00:00:00+00:00





Test script:
---------------
echo date('c', strtotime('2012W46'));
2012-11-12T00:00:00+00:00


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-22 02:07 UTC] marksolly at gmail dot com
-Status: Open +Status: Closed
 [2015-05-22 02:07 UTC] marksolly at gmail dot com
Not a bug. Feature is (counter intuitively) documented at:
http://php.net/manual/en/datetime.formats.compound.php
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC