Re: Is this a bug with date() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have found a bug report.  This is the correct functionality.

Mike

> I understand that technically there are more than 52 weeks in a year.
> Well at least google says 1 year = 52.177457 weeks.
>
> So I run the command:
> php > echo date('W' , mktime(0, 0, 0, 1, 1, date('Y')));
> 53
>
> As you can see the result is 53.
>
> Any thoughts on this?
>
> Mike
>


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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux