Hi all,

Can somebody please explain this for me...

[EMAIL PROTECTED]:/usr/home/wb [11]-> php
<?php
$time = strtotime('now -5 weeks');
printf("\n\n%s is in week %d of the year %d\n\n", date('Y-m-d', $time), date('W', $time), date('Y', $time));
?>
^D


2003-12-30 is in week 1 of the year 2003

[EMAIL PROTECTED]:/usr/home/wb [12]->

Why does it return 1 as the week of the year for that date?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to