|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-23 13:33 UTC] derick@php.net
[2005-06-30 23:40 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ Well I've seen so many bugs reported in this discussion, but not exactly this one. The fact is, it's not a bug, more like a defect. Date function lacks a format to return the year when used with 'W'. For example mySQL has '%X' for function date_format. Reproduce code: --------------- date('Y-W', strtotime('2005-1-1')) Expected result: ---------------- 2004-53 Actual result: -------------- 2005-53