php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12944 new date() and getdate() feature
Submitted: 2001-08-24 07:45 UTC Modified: 2002-04-28 19:51 UTC
From: gandon at isia dot cma dot fr Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4pl1 OS: linux redhat 7.0
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: gandon at isia dot cma dot fr
New email:
PHP Version: OS:

 

 [2001-08-24 07:45 UTC] gandon at isia dot cma dot fr
It would be nice is the php date() function could 
return the ISO-defined week of year.

getdate() could also add that value (the ISO-defined week of year) associated to the 'yweek' key in the returned array.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-24 07:56 UTC] derick@php.net
strftime already supports this: (from the manual notes):

Week number:
print strftime("%W");
 [2002-04-28 19:49 UTC] jimw@php.net
date("W") does this.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 08:01:30 2025 UTC