note 48071 added to function.date

From: Date: Fri, 10 Dec 2004 15:36:09 +0000
Subject: note 48071 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-81652@lists.php.net to get a copy of this message
>> Ever had trouble about german calculation of number of weeks in a certain year? It seems that PHP date function delivers wrong result. For example today is 10th December 2004 echo getTodayPlusNdays(22) . " / W" . date("W", getTodayPlusNdays(22)); shows 2005-01-01 / W1, but the week number should be 53. Because ISO 8601 specifies that Week 01 of the year is the week containing the first Thursday; Monday is Weekday 1, Sunday is Weekday 7; http://personal.ecu.edu/mccartyr/ISOwdALG.txt ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48071 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48071&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48071&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81652) next »