note 48071 deleted from function.date by tularis

From: Date: Sun, 30 Jan 2005 14:39:40 +0000
Subject: note 48071 deleted from function.date by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84222@lists.php.net to get a copy of this message
Note Submitter: timofeev at impact dot de ---- >> 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

« previous php.notes (#84222) next »