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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 22:00:01 2026 UTC