Bug #14422 Updated: Wrong week-numbers for year 2002

From: Date: Wed, 12 Dec 2001 10:12:55 +0000
Subject: Bug #14422 Updated: Wrong week-numbers for year 2002
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73250@lists.php.net to get a copy of this message
ID: 14422 Updated by: hholzgra Reported By: sz@bluemail.ch Old Status: Open Status: Bogus Bug Type: Date/time related Operating System: Win32 PHP Version: 4.0.6 New Comment: bogusified Previous Comments: ------------------------------------------------------------------------ [2001-12-12 05:12:40] hholzgra@php.net nope, see http://php.net/strftime: "%W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week" the uncomplete week before the first monday is week 0 ------------------------------------------------------------------------ [2001-12-11 05:28:24] sz@bluemail.ch // Example: Week of Jan 01, 2002: $sec = mktime(0,0,0,1,1,2002); $week = strftime("%W", $sec); Result: $week = 00 !!! Should be: 01 ! ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14422&edit=1

« previous php.dev (#73250) next »