note 105558 deleted from function.date by danbrown
| From: | danbrown@php.net | Date: | Sat, 27 Aug 2011 23:36:21 +0000 |
| Subject: | note 105558 deleted from function.date by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182773@lists.php.net to get a copy of this message | ||
Note Submitter: barremob at gmail dot com
----
response to blinov vyacheslav AT gmail.com,
first of all the W option of the date function works just fine.
second it has been mentioned with this "ISO-8601 week number of year"
for more info look here
http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/date_and_time_format.htm
or here
http://en.wikipedia.org/wiki/ISO_week_date
what you need is the following:
$weeknumber = ceil(date("z", $input)/7)
Best regards,