ID: 14422
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Date/time related
Operating System: Win32
PHP Version: 4.0.6
New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2001-12-11 05:28:24] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to