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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC